Voici un exemple de test illustrant l’utilisation du plugin `CodeInputBuilder` avec Bootstrap et jQuery. Cet exemple propose des champs configurés pour accepter des entiers, des nombres flottants et du texte, offrant un aperçu des possibilités de personnalisation du plugin.
{ type: 'integer',
numInputs: 5,
values: [0x00, 0x02, 1, 0, 4],
minValues: [9, 9, 9, 9, 9],
maxValues: [9, 8, 7, 6, 5],
allowSign: true, // Nouveau paramètre pour autoriser le signe
defaultSign: '+', // Signe par défaut (peut être "+" ou "-")
gap: '1px', // Espace entre les inputs
requireKeyForScroll: 'Control',
allowArrowKeys: true,
}
Aucun changement
Aucune valeur
{ type: 'float',
numInputs: 5,
values: [0, 0, 0, 0, 0],
minValues: [0, 0, 0, 0,0],
maxValues: [9, 9, 9, 9, 9],
decimalPosition : 2,
separator : ','
,
gap: '1px', // Espace entre les inputs
autoFocusNextInput: true,
autoFocusNextInputDirection: 'Right',
isDisabled : true,
}
Aucun changement
Aucune valeur
{ type: 'float',
numInputs: 6,
values: [0, 0, 0, 0, 0, 0],
minValues: [0, 0, 0, 0, 0, 0],
maxValues: [9, 9, 9, 9, 9, 9],
decimalPosition : 2,
allowSign: true,
defaultSign: '+',
totalMin: -90.0,
totalMax: +90.0,
separator : '.'
,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur
{ type: 'float',
numInputs: 7,
values: [0, 0, 0, 0, 0, 0, 0],
minValues: [0, 0, 0, 0, 0, 0, 0],
maxValues: [9, 9, 9, 9, 9, 9, 9],
decimalPosition : 3,
allowSign: true,
defaultSign: '+',
totalMin: -180.0,
totalMax: +180.0,
separator : '.'
,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur
{ type: 'hexadecimal',
numInputs: 5,
values: [0x1d, 0x02, 9, '0xc', 'b'],
minValues: [0x00, 0x00, 0x00, 0x00, 0x00],
maxValues: [0x0f, 0x0f, 0x0f, 0x0f, 0x0f],
}
Aucun changement
Aucune valeur
{ type: 'binary',
numInputs: 5,
values: [0x00, 0x01, 0x00, 0x01, 0x00],
}
Aucun changement
Aucune valeur
{ type: 'letter',
numInputs: 5,
values: [0x00, 0xcd, 14, '0', 'µ'],
minValues: [0x00, 0x00, 0x00, 0x00, 0x00],
maxValues: [0xff, 0xff, 0xff, 0xff, 0xff],
}
Aucun changement
Aucune valeur
{ type: 'text',
values: ["Lorem", "Consectetur", "Eiusmod", "Nulla", "Vestibulum", "Sollicitudin"],
defaultValue : 0,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur
{ type: 'time',
formatTime: 'HH:MM:SS.SSS',
hourCycle: '24h',
defaultValue : 0,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur
{ type: 'time',
formatTime: 'HH:MM:SS',
hourCycle: '12h',
defaultValue : 0,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur
{ type: 'date',
formatDate: 'DD/MM/YYYY',
defaultValue : 0,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur
{ type: 'date',
formatDate: 'DD/MH/YYYY',
defaultLanguage : 'en-US',
defaultValue : 0,
gap: '10px', // Espace entre les inputs
}
Aucun changement
Aucune valeur