EXT JS4の追加をクエリー文字列をリンク
-
25-10-2019 - |
質問
また作成コンポーネントのプラットフォームにはバイナリをExt Js4は?未定義へのリンクです。どのようにいくのでしょうか?
Ext.onReady(function() {
Ext.create('Ext.toolbar.Toolbar', {"items":[{"text":"Dashboard","xtype":"button","target":"_self","href":"https:\/\/domain.tld\/admin\/"},{"text":"Categories","xtype":"button","menu":{"items":[{"text":"New","xtype":"button","target":"_self","href":"https:\/\/domain.tld\/admin\/category\/create\/"}]}}],"renderTo":"admin_menu","width":"100%"});
});
クリックでダッシュボードか https://domain.tld/admin/dashboard?undefined
解決
ご本人の了解のもと、掲載しているソースなどで作成はurlに対するものとなります。これに対して、href config追加し、params configなくされていないかを説明する場合のパラメータが定義されています。その後に追加しbaseParams config.またリンクなクエリー文字列の作成ボタンの空params config.
Ext.作成("Ext.ボタンを押します。ボタン"{url:'www.google.com',params:"text:'リンクを介し、目標:'_self'});
他のヒント
extjsドキュメント 言及していません href
ツールバーのサポートされている構成オプションとして。
指定する代わりに target
と href
, 、ハンドラー関数を指定することをお勧めします。の効果への何か:
{
text:'Dashboard',
handler:function(){
//window.open(...) or window.location.href=...
}
//...
}
所属していません StackOverflow