Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I change the text in the "OK" and "cancel" buttons #134

Open
manuelQuiroz opened this issue Oct 18, 2019 · 1 comment
Open

how can I change the text in the "OK" and "cancel" buttons #134

manuelQuiroz opened this issue Oct 18, 2019 · 1 comment

Comments

@manuelQuiroz
Copy link

I need to change the descriptive text of the "OK" and "cancel" buttons.
I tried placing the changes in the open method configuration object but I didn't get it.

open( ) {
let configTimer = {
  time: this.mytimerVar,
  start: '15:30',
    end: '23:30',
  label: {  // this concept need add 
    ok: "Aceptar",
    cancel: "Cancelar"
  },
  arrowStyle: {
    background:  '#3bb0c9' ,
    color: 'white'
  }
}
  const amazingTimePicker = this._timePickr.open(configTimer);
  amazingTimePicker.afterClose().subscribe(time => {
   
  });
}
@Qvadis
Copy link

Qvadis commented Aug 6, 2020

I found the solution.

You have to pass labels inside a preference object like this:

let configTimer = {
  time: this.mytimerVar,
  start: '15:30',
    end: '23:30',
  preferences: { 
       labels: { 
             ok: "Aceptar",
             cancel: "Cancelar"
       },
  }
  arrowStyle: {
    background:  '#3bb0c9' ,
    color: 'white'
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants