1

jQueryUI には、ラジオ ボタンの非常に優れた表示があります。

jQuery UI ラジオセット

Sencha に似たようなものはありますか?


そうでない場合は、フォローアップの質問:

ワンタッチしか必要としない 3 アイテム (または 4 アイテム) コンポーネントの優れた UX は何だと思いますか? (たとえば、選択ボックスは 2 回のタッチで、1 回は選択リストを開き、もう 1 回はオプションを選択します)

4

1 に答える 1

3

Ext.SegmentedButtonあなたはSencha Touchで探しています。

サンプルコードスニペット:-

var segmentedButton = new Ext.SegmentedButton({

    allowMultiple: false,  // ensures only 1 button gets pressed at a time.
    items: [
        {
            text: 'Choice 1'
        },
        {
            text   : 'Choice 2',
            pressed: true
        },
        {
            text: 'Choice 3'
        }
    ],
    listeners: {
        toggle: function(container, button, pressed){
            console.log("User toggled the '" + button.text + "' button: " + (pressed ? 'on' : 'off'));
        }
    }
});
Ext.Viewport.add({ xtype: 'container', padding: 10, items: [segmentedButton] });

出力:-

ここに画像の説明を入力

于 2012-05-17T05:20:09.453 に答える