| OLD | NEW |
| 1 --- | 1 --- |
| 2 layout: default | 2 layout: default |
| 3 title: "Target 4: Remove DOM Elements" | 3 title: "Target 4: Remove DOM Elements" |
| 4 description: "Remove a child element from the DOM" | 4 description: "Remove a child element from the DOM" |
| 5 has-permalinks: true | 5 has-permalinks: true |
| 6 tutorial: | 6 tutorial: |
| 7 id: remove-elements | 7 id: remove-elements |
| 8 next: packages |
| 9 next-title: "Install Shared Packages" |
| 10 prev: add-elements |
| 11 prev-title: "Add Elements to the DOM" |
| 8 --- | 12 --- |
| 9 | 13 |
| 10 {% capture whats_the_point %} | 14 {% capture whats_the_point %} |
| 11 | 15 |
| 12 * Use _element_.remove() to remove an element from the DOM. | 16 * Use _element_.remove() to remove an element from the DOM. |
| 13 * Remove all children from an element with _element_.children.clear(). | 17 * Remove all children from an element with _element_.children.clear(). |
| 14 * Function expressions are a convenient way to define single-use functions. | 18 * Function expressions are a convenient way to define single-use functions. |
| 15 * => is a shorthand syntax for defining functions that contain just one | 19 * => is a shorthand syntax for defining functions that contain just one |
| 16 expression. | 20 expression. |
| 17 * dart:html defines many event-related classes. | 21 * dart:html defines many event-related classes. |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 </li> | 227 </li> |
| 224 | 228 |
| 225 <li> | 229 <li> |
| 226 You can find more information about the DOM and CSS in | 230 You can find more information about the DOM and CSS in |
| 227 <a href="/docs/dart-up-and-running/">Dart Up and Running</a>, | 231 <a href="/docs/dart-up-and-running/">Dart Up and Running</a>, |
| 228 which also provides thorough coverage of the Dart language, | 232 which also provides thorough coverage of the Dart language, |
| 229 libraries, and tools. | 233 libraries, and tools. |
| 230 </li> | 234 </li> |
| 231 </ul> | 235 </ul> |
| 232 | 236 |
| 233 <hr> | |
| 234 | |
| 235 <div class="row"> | |
| 236 <div class="span3"> | |
| 237 <a href="/docs/tutorials/add-elements/"><i class="icon-chevron-left"> </i> Add
Elements to the DOM</a> | |
| 238 </div> | |
| 239 <div class="span3"> | |
| 240 <a href="http://code.google.com/p/dart/issues/entry?template=Tutorial%20feedback
" | |
| 241 target="_blank"> | |
| 242 <i class="icon-comment"> </i> | |
| 243 Send feedback | |
| 244 </a> | |
| 245 </div> | |
| 246 <div class="span3"> | |
| 247 <a href="/docs/tutorials/packages/" class="pull-right">Install Shared Packages
<i class="icon-chevron-right"> </i> </a> | |
| 248 </div> | |
| 249 </div> | |
| 250 | |
| 251 {% endcapture %} | 237 {% endcapture %} |
| 252 | 238 |
| 253 {% include tutorial.html %} | 239 {% include tutorial.html %} |
| OLD | NEW |