* Sets the field priority that determines the field order. * @param {number} priority Field priority * @return {Field} Fluent interface
(priority)
| 107 | * @return {Field} Fluent interface |
| 108 | */ |
| 109 | setPriority (priority) { |
| 110 | this._priority = priority |
| 111 | if (this._delegate && this._delegate.fieldPriorityDidChange) { |
| 112 | this._delegate.fieldPriorityDidChange(this, priority) |
| 113 | } |
| 114 | if (this._delegate && this._delegate.fieldNeedsLayout) { |
| 115 | this._delegate.fieldNeedsLayout(this) |
| 116 | } |
| 117 | return this |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Returns the field width. |
no test coverage detected