MCPcopy Create free account
hub / github.com/cryptii/cryptii / setPriority

Method setPriority

src/Field.js:109–118  ·  view source on GitHub ↗

* Sets the field priority that determines the field order. * @param {number} priority Field priority * @return {Field} Fluent interface

(priority)

Source from the content-addressed store, hash-verified

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.

Callers 1

Field.jsFile · 0.80

Calls 2

fieldNeedsLayoutMethod · 0.80

Tested by

no test coverage detected