Input class
Class for an input with optional fields.
Signature:
export declare class Input
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
Alignment of input's fields (left, right or centre). | |||
Connection | null | |||
Field[] | |||
string | |||
|
Methods
Method | Modifiers | Description |
|---|---|---|
Add a field (or label from string), and all prefix and suffix fields, to the end of the input's field row. | ||
Sever all links to this input. | ||
Returns the XML representation of the connection's shadow block. | ||
Get the source block for this input. | ||
Initialize the fields on this input. | ||
Inserts a field (or label from string), and all prefix and suffix fields, at the location of the input's field row. | ||
Gets whether this input is visible or not. | ||
| Constructs a connection based on the type of this input's source block. Properly handles constructing headless connections for headless blocks and rendered connections for rendered blocks. | |
Remove a field from this input. | ||
Change the alignment of the connection's field(s). | ||
Change a connection's compatibility. | ||
Changes the connection's shadow block. |