Re: How to use checkBox ?
- From: Giovanni Campagna <scampa giovanni gmail com>
- To: alok barsode <alokbarsode gmail com>
- Cc: gnome-shell-list gnome org
- Subject: Re: How to use checkBox ?
- Date: Mon, 17 Sep 2012 15:27:57 +0200
2012/9/17 alok barsode <alokbarsode gmail com>:
> hi,
>
> I want to use checkbox is a modal dialog. Here is what i am doing :
>
> const checkbox = imports.ui.checkBox;
>
> <in the modal dialog i do>
>
> this.check = new checkbox.CheckBox();
> this.check.setLabel('Label1');
> messageBox.add(this.check);
messageBox.add(this.check.actor);
> messagebox is a St.BoxLayout and all the other components which are added to
> it are working correctly.
>
> how do i use a checkbox?
Look at the code, it's pretty straightforward.
> none of the javascript ui files are using it (so i could use it as
> reference). is it deprecated?
It's used by the keyring prompter (js/ui/components/keyring.js in master)
Giovanni
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]