* @returns {*}
()
| 77 | * @returns {*} |
| 78 | */ |
| 79 | createExampleComponent() { |
| 80 | return Neo.ntype({ |
| 81 | ntype : 'container', |
| 82 | width : 350, |
| 83 | cls : ['example-fieldWithPrefix'], |
| 84 | layout: {ntype: 'vbox', align: 'stretch'}, |
| 85 | items : [{ |
| 86 | module : TextField, |
| 87 | labelText: 'Phone Number', |
| 88 | plugins : [ |
| 89 | { |
| 90 | module : PrefixPlugin, |
| 91 | pattern: '+1 (___) ___-___-____', |
| 92 | slots : '_' |
| 93 | } |
| 94 | ] |
| 95 | }, { |
| 96 | module : TextField, |
| 97 | labelText: '[0-9] Date', |
| 98 | plugins : [ |
| 99 | { |
| 100 | module : PrefixPlugin, |
| 101 | pattern: 'dd/mm/yyyy hh:mm', |
| 102 | slots : 'dmyh' |
| 103 | } |
| 104 | ] |
| 105 | }, { |
| 106 | module : TextField, |
| 107 | labelText: '[A-H] MAC Adress', |
| 108 | plugins : [ |
| 109 | { |
| 110 | module : PrefixPlugin, |
| 111 | pattern: 'XX:XX:XX:XX:XX:XX', |
| 112 | slots : 'X', |
| 113 | accept : '[A-H]' |
| 114 | } |
| 115 | ] |
| 116 | }, { |
| 117 | module : TextField, |
| 118 | labelText: '/\\w/ Alphanumeric', |
| 119 | plugins : [ |
| 120 | { |
| 121 | module : PrefixPlugin, |
| 122 | pattern: '__-__-__-____', |
| 123 | slots : '_', |
| 124 | accept : /\w/ |
| 125 | } |
| 126 | ] |
| 127 | }, { |
| 128 | module : TextField, |
| 129 | labelText: '/\\d/ Credit Card', |
| 130 | plugins : [ |
| 131 | { |
| 132 | module : PrefixPlugin, |
| 133 | pattern: '.... .... .... ....', |
| 134 | slots : '.', |
| 135 | accept : /\d/ |
| 136 | } |
nothing calls this directly
no outgoing calls
no test coverage detected