Parameters
className - The class attribute.
id - The id attribute.
Returns
The common element attributes collection.
Syntax
| JavaScript |
|
Attribs(className = null, id = null)
|
Gets common element attributes.
Example
| JavaScript |
// Gets common element attributes.
Attribs()
{
// Root Method Begin
const textState = new LJCTextState();
const tb = new LJCTextBuilder(textState);
// Example Method:
const className = "className";
const id = "idName";
const attribs = tb.Attribs(className, id);
const dataColumns = attribs.UniqueColumns("id");
const attrib = attribs.Retrieve(dataColumns);
const result = attrib.Value;
// result:
// "idName"
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.