Konbini elements
Learn how to use Konbini elements.
Creating a Konbini element
var konbiniOptions = {
classes: {
base: "DRElement",
complete: "konbini-complete",
empty: "konbini-empty",
focus: "konbini-focus"
},
style: {
base: {
color: '#495057',
height: '35px',
fontSize: '1rem',
fontFamily: 'apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif',
// fontWeight: 'lighter',
':hover': {
color: '#ccc',
},
'::placeholder': {
color: '#495057'
}
},
focus: {
':hover': {
color: '#495057',
},
},
empty: {
':hover': {
color: '#495057',
},
},
complete: {
':hover': {
color: '#495057',
},
}
}
};
let konbini = digitalriverpayments.createElement('konbini', konbiniOptions);Konbini element functions
konbini.mount();
konbini.unmount();
konbini.destroy();
konbini.update();
Konbini element events - konbini.on('event', handler);
Event
Triggered When
Ready
Key
Value
Focus
Blur
Change
Key
Value Description
Last updated