|
@@ -492,8 +492,6 @@ Object subclass: #TagBrush
|
|
|
!TagBrush commentStamp!
|
|
|
I am a brush for building a single DOM element (which I hold onto).
|
|
|
|
|
|
-All tags but `<style>` are instances of me (see the `StyleBrush` class).
|
|
|
-
|
|
|
## API
|
|
|
|
|
|
1. Nesting
|
|
@@ -510,15 +508,15 @@ All tags but `<style>` are instances of me (see the `StyleBrush` class).
|
|
|
|
|
|
3. Attributes
|
|
|
|
|
|
- The `attribute` protocol contains methods for attribute manipulation (delegating to jQuery too).
|
|
|
+ The `attribute` protocol contains methods for attribute manipulation.
|
|
|
|
|
|
Example: `aTag at: 'value' put: 'hello world'`
|
|
|
|
|
|
4. Raw access and jQuery
|
|
|
|
|
|
- The `#element` method can be used to access to JavaScript DOM element object.
|
|
|
+ The `#asDomNode` method can be used to access to JavaScript DOM element object.
|
|
|
|
|
|
- Example: `aTag element cssStyle`
|
|
|
+ Example: `aTag asDomNode cssStyle`
|
|
|
|
|
|
Use `#asJQuery` to access to the receiver converted into a jQuery object.
|
|
|
|
|
@@ -846,13 +844,13 @@ I am a presenter building HTML. Subclasses are typically reusable components.
|
|
|
|
|
|
## API
|
|
|
|
|
|
-Use `#renderContentOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).
|
|
|
+Use `#renderOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).
|
|
|
|
|
|
-To add a widget to the page, the convenience method `#appendToJQuery:` is very useful.
|
|
|
+To add a widget to the page, the convenience method `#appendToBrush:` is very useful.
|
|
|
|
|
|
Exemple:
|
|
|
|
|
|
- Counter new appendToJQuery: 'body' asJQuery!
|
|
|
+ Counter new appendToBrush: 'body' asBrush!
|
|
|
|
|
|
!Widget methodsFor: 'adding'!
|
|
|
|