mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Checkbox
This commit is contained in:
@ -10,6 +10,7 @@ let platformMode = Platform.getMode();
|
||||
|
||||
export class IonicComponent {
|
||||
constructor(ComponentClass, {
|
||||
properties,
|
||||
bind,
|
||||
enhanceRawElement,
|
||||
delegates,
|
||||
@ -19,6 +20,8 @@ export class IonicComponent {
|
||||
ComponentClass.config = this
|
||||
this.componentCssName = util.pascalCaseToDashCase(ComponentClass.name)
|
||||
|
||||
this.properties = properties || (properties = {});
|
||||
|
||||
this.bind = bind || (bind = {})
|
||||
for (let attrName in bind) {
|
||||
let binding = bind[attrName]
|
||||
@ -86,6 +89,7 @@ export class IonicComponent {
|
||||
}
|
||||
|
||||
return {
|
||||
properties: this.properties,
|
||||
getDelegate(delegateName) {
|
||||
let cases = (config.delegates || {})[delegateName] || [];
|
||||
for (let i = 0; i < cases.length; i++) {
|
||||
|
Reference in New Issue
Block a user