Represents a single property row, typically in a Property Inspector.
| Signature |
cp.ui.PropertyRow.intersectBuffer |
| Type |
Constant |
| Description |
Defines the buffer for intersections with the labelUI. |
| Signature |
cp.ui.PropertyRow.isParent(parent) -> boolean |
| Type |
Function |
| Description |
Checks if the parent has been prepared via prepareParent. |
| Parameters |
|
| Returns |
true if the parent is prepared.
|
| Signature |
cp.ui.PropertyRow.matches(element) -> boolean |
| Type |
Function |
| Description |
Checks if the provided axuielement could be a property row. |
| Parameters |
- element - The element to check.
|
| Returns |
true if the element could be a property row.
|
| Signature |
cp.ui.PropertyRow.parentUIFinder(parent) -> cp.prop |
| Type |
Function |
| Description |
Returns the cp.prop which finds the hs._asm.axuielement that contains property rows from the parent. |
| Parameters |
- parent - The parent which has a finder assigned.
|
| Returns |
- The
cp.prop which provides access to the finder, or nil.
|
| Signature |
cp.ui.PropertyRow.prepareParent(parent, uiFinder) -> none |
| Type |
Function |
| Description |
Call this to make parent table ready to be a parent of PropertyRows. |
| Parameters |
- parent - The parent table.
- uiFinder - The function or cp.prop which will be called to find the parent UI element. Functions will be passed the
parent when being executed.
|
| Returns |
|
| Signature |
cp.ui.PropertyRow(parent, labelKey[, index]) -> cp.ui.PropertyRow |
| Type |
Constructor |
| Description |
Creates a new PropertyRow with the specified parent and label key. |
| Parameters |
- parent - The parent object.
- labelKey - The key of the label that the row will map to.
- index - The row number with the same label to get. Defaults to
1.
|
| Returns |
- The new
PropertyRow instance.
|
| Signature |
cp.ui.PropertyRow.label <cp.prop: string; read-only> |
| Type |
Field |
| Description |
The label of the property row, in the current langauge. |
| Signature |
cp.ui.PropertyRow.labelUI <cp.prop: hs._asm.axuielement; read-only> |
| Type |
Field |
| Description |
Returns the axuielement for the label UI. |
| Signature |
cp.ui.PropertyRow.propertiesUI <cp.prop: hs._asm.axuielement; read-only> |
| Type |
Field |
| Description |
The axuielement from the parent that contains the properties. |
| Signature |
cp.ui.PropertyRow.reset <cp.ui.Button> |
| Type |
Field |
| Description |
The reset button for the row, which may or may not actually exist. |
| Signature |
cp.ui.PropertyRow.UI <cp.prop: hs._asm.axuielement; read-only> |
| Type |
Field |
| Description |
Returns the axuielement for the row. |
| Signature |
cp.ui.PropertyRow:app() -> App |
| Type |
Method |
| Description |
Returns the app instance. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.PropertyRow:children() -> table | nil |
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Method |
| Description | Gets a table of children for the Property Row. |
| Parameters |
|
| Returns | - A table of children or
nil.
|
| Signature |
cp.ui.PropertyRow:doHide() -> cp.rx.go.Statement |
| Type |
Method |
| Description |
A Statement that will attempt to hide the PropertyRow. |
| Returns |
|
| Signature |
cp.ui.PropertyRow:doShow() -> cp.rx.go.Statement |
| Type |
Method |
| Description |
A Statement that shows the PropertyRow. |
| Parameters |
|
| Returns |
|
| Signature |
cp.ui.PropertyRow:extend(extendFn) -> cp.ui.PropertyRow |
| Type |
Method |
| Description |
This method will call the provided function, passing it the current PropertyRow. |
| Parameters |
- extendFn - A
function that will be passed the current row.
|
| Returns |
- The same
PropertyRow instance.
|
| Signature |
cp.ui.PropertyRow:hide() -> self |
| Type |
Method |
| Description |
Hides the PropertyRow. |
| Parameters |
|
| Returns |
|
| Signature |
cp.ui.PropertyRow:labelKeys() -> string |
| Type |
Method |
| Description |
Gets the key of the label that the row will map to. |
| Parameters |
|
| Returns |
|
| Signature |
cp.ui.PropertyRow:parent() -> parent |
| Type |
Method |
| Description |
Returns the parent object. |
| Parameters |
|
| Returns |
|
| Signature |
cp.ui.PropertyRow:show() -> self |
| Type |
Method |
| Description |
Shows the PropertyRow. |
| Parameters |
|
| Returns |
|