new Accessors_A()
Creates an instance of the TComponents.Accessors_A class. This class provides the foundational getter/setter methods for common component properties (e.g., size, visibility). All the components inherit these basic property accessors.
- Source
Extends
Members
backgroundColor :string
Sets the background color of the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.backgroundColor = 'red';border :string
Sets the border of the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.border = '1px solid black';borderRadius :number
Sets the border radius of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.borderRadius = 10;fontFamily :string
Sets the font family of the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.fontFamily = 'Arial';fontSize :number
Sets the font size of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.fontSize = 16;fontStyle :string
Sets the font style of the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.fontStyle = 'italic';fontWeight :number
Sets the font weight of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.fontWeight = 700;height :number
Sets the height of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.height = 100;hidden :boolean
Sets the hidden state of the component.
- boolean
- Source
const component = new TComponents.Accessors_A(null, {});
component.hidden = true;label :string
The label text for the component
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.label = 'New Label';left :number
Sets the left position of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.left = 100;position :string
Sets the position of the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.position = 'absolute';rotation :number
Sets the rotation of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.rotation = 45;textDecoration :string
Sets the text decoration of the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.textDecoration = 'underline';tips :string
Sets the tooltip text for the component.
- string
- Source
const component = new TComponents.Accessors_A(null, {});
component.tips = 'This is a tooltip';top :number
Sets the top position of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.top = 100;width :number
Sets the width of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.width = 100;zIndex :number
Sets the z-index of the component.
- number
- Source
const component = new TComponents.Accessors_A(null, {});
component.zIndex = 10;Methods
setContainerBasicCss() → {void}
Sets basic inline styles on the container element based on this._props.
- Supports width, height, top, left, zIndex, and position.
- If props.position is relative, width uses '%' and position is 'static'.
- Skips undefined properties.
- Source
- Type:
- void