問題タブ [inputbinding]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
44 参照

wpf - XAML で完全な Click MouseGesture を ListBoxItem に追加する方法

私はジェスチャーをListBoxItem持っています:LeftClick

しかし実際には、これは実際のクリックではなく、単なるMouseLeftButtonDownジェスチャーです。ボタンを押したCommand後、ボタンを上げたかどうかに関係なく実行されます。

MouseDownとのMouseUpジェスチャーで完全なクリックをしたいと思いListBoxItemます。とにかくそれをすることはありますか?とても有難い。

Commandまた、 を に追加する方法が見つかりませんExpander。上記の方法はListBoxItem機能しません。ここに魔法はありますか?ありがとう!

0 投票する
1 に答える
33 参照

angular - 入力バインディングを使用して祖父母コンポーネントから子コンポーネントにデータを渡す

私の目標は、results.component (祖父母) からのlocation配列を、 bid-filter.component (子)を介してdestination-selector.component (親)に渡すことです。

results.ts (祖父母)

ここのログは定義されており、場所の配列を示しています

results.html (祖父母)

bid-filter.ts (親)

ここのログは未定義です

bid-filter.html(親)

destination-selector.ts (子)

undefined も表示されます

ここでかなり明白な何かが欠けていますか?私の問題Angular 2 Component @Input not workingには当てはまらないいくつかの解決策を確認しました

どんな助けでも大歓迎です。