* Triggered when a setting field has changed. * @protected * @param {Field} setting Sender setting field * @param {mixed} value New field value
(setting, value)
| 146 | * @param {mixed} value New field value |
| 147 | */ |
| 148 | settingValueDidChange (setting, value) { |
| 149 | switch (setting.getName()) { |
| 150 | case 'variant': { |
| 151 | // Make alphabet and padding settings available with the custom variant |
| 152 | this.getSetting('alphabet').setVisible(value === 'custom') |
| 153 | this.getSetting('padding').setVisible(value === 'custom') |
| 154 | this.getSetting('paddingOptional').setVisible(value === 'custom') |
| 155 | break |
| 156 | } |
| 157 | |
| 158 | case 'alphabet': { |
| 159 | // Alphabet characters are not allowed to be used as padding |
| 160 | this.getSetting('padding').setBlacklistChars(value) |
| 161 | break |
| 162 | } |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Returns the current variant options. |
nothing calls this directly
no test coverage detected