File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11< script type ="text/html " data-help-name ="ui_template ">
22 < p > The template widget can contain any valid html and Angular/Angular-Material directives.</ p >
3- < p > This node can be used to create a dynamic user interface element that changes its appearence
3+ < p > This node can be used to create a dynamic user interface element that changes its appearance
44 based on the input message and can send back messages to Node - RED . < / p >
55 < p > < b > For example:</ b > < br >
66 < pre style = "font-size:smaller;" > <div layout="row" layout-align="space-between">
Original file line number Diff line number Diff line change 44 < p > If a < code > msg . topic < / c o d e > i s a v a i l a b l e i t w i l l b e u s e d a s t h e t i t l e .< / p>
55 < p > If you do not set an optional border highlight colour, then it can be set dynamically by < code > msg.highlight</ code > .</ p >
66 < p > You may also configure the position and duration of the toast notifications . If you leave the timeout blank
7- it can be set by < code > msg . timeout . This does not apply to OK / Cancel dialogs . < / c o d e > .
7+ it can be set by < code > msg . timeout < / c o d e > . T h i s d o e s n o t a p p l y t o O K / Cancel dialogs .
88 < p > The dialog returns a < code > msg . payload < / c o d e > s t r i n g o f w h a t e v e r y o u c o n f i g u r e
99 the button label ( s ) to be . The second ( cancel ) button is optional , as is the return
1010 value of < code > msg . topic < / c o d e > .< / p>
1111 < p > If you select 'OK, Cancel and Input' mode then < code > msg.payload</ code > will contain
1212 any text input by the user, rather than the OK button text.</ p >
1313 < p > Sending a blank payload will remove any active dialog without sending any data . < / p >
14- < p > If a < b > Class < / b > i s s p e c i f i e d , i t w i l l b e a d d e d t o t h e p a r e n t e l e m e n t . T h i s w a y y o u c a n s t y l e t h e c a r d a n d t h e e l e m e n t s i n s i d e i t w i t h c u s t o m C S S < / p>
14+ < p > If a < b > Class</ b > is specified, it will be added to the parent element. This way you can style the card and the elements inside it with custom CSS. </ p >
1515</ script >
Original file line number Diff line number Diff line change 99 < p > < b > 初期ラベル</ b > フィールドを用いることで、有効なデータを受け取る前にテキストを表示しておくことができます。 < / p >
1010 < p > プロパティ名 ( 例えば < code > { { msg . topic} } < / c o d e > ) を ラ ベ ル 欄 に 設 定 し て お く こ と で 、 ラ ベ ル を メ ッ セ ー ジ の プ ロ パ テ ィ に よ っ て 設 定 で き ま す 。 < / p>
1111 < p > 本ノードの出力には、必要に応じて保存されたグラフの状態を持つ配列が含まれています。本データをchartノードに渡すことで、保存されたデータを再表示することもできます。</ p >
12- < p > クラスが指定されている場合、そのクラスは親要素に追加されます。 このようにして、カスタムCSSを使用して、カードとその中の要素のスタイルを設定できます。 クラスは、 < code > msg . className < / c o d e > 文 字 列 プ ロ パ テ ィ を 設 定 す る こ と で 実 行 時 に 設 定 で き ま す 。 < / p>
12+ < p > クラスが指定されている場合、そのクラスは親要素に追加されます。 このようにして、カスタムCSSを使用して、カードとその中の要素のスタイルを設定できます。 クラスは、 < code > msg . className < / c o d e > 文 字 列 プ ロ パ テ ィ を 設 定 す る こ と で 実 行 時 に 設 定 で き ま す 。 < / p>
1313</ script >
Original file line number Diff line number Diff line change 1313 </ ul >
1414 < p > < b > Topic</ b > 欄は任意で < code > msg . topic < / c o d e > プ ロ パ テ ィ を 設 定 す る た め に 用 い る こ と が で き ま す 。 < / p>
1515 < p > キャンセルボタンは、値に空白""を設定することで非表示にできます。</ p >
16- < p > クラスが指定されている場合、そのクラスは親要素に追加されます。 このようにして、カスタムCSSを使用して、カードとその中の要素のスタイルを設定できます。 クラスは、 < code > msg . className < / c o d e > 文 字 列 プ ロ パ テ ィ を 設 定 す る こ と で 実 行 時 に 設 定 で き ま す 。 < / p>
16+ < p > クラスが指定されている場合、そのクラスは親要素に追加されます。 このようにして、カスタムCSSを使用して、カードとその中の要素のスタイルを設定できます。 クラスは、 < code > msg . className < / c o d e > 文 字 列 プ ロ パ テ ィ を 設 定 す る こ と で 実 行 時 に 設 定 で き ま す 。 < / p>
1717</ script >
Original file line number Diff line number Diff line change 4040 「HTMLコード」フィールドに記述したコードは、< code > msg.template</ code > が存在する場合には無視されます。</ p >
4141 < p > 以下のアイコンフォントの利用も可能です: < a href = "https://klarsys.github.io/angular-material-icons/" target = "_blank" > マテリアルデザインアイコン</ a > < i > (例:'check'、'close')</ i > 、< a href = "https://fontawesome.com/v4.7.0/icons/" target = "_blank" > Font Awesomeアイコン</ a > < i > (例:'fa-fire')</ i > 、< a href = "https://github.com/Paul-Reed/weather-icons-lite/blob/master/css_mappings.md" > 天気アイコン</ a > 。
4242 アイコン名に'mi-’に追加することでGoogleマテリアルアイコン一式を利用できます。例:'mi-videogame_asset'。</ p >
43- < p > クラスが指定されている場合、そのクラスは親要素に追加されます。 このようにして、カスタムCSSを使用して、カードとその中の要素のスタイルを設定できます。 クラスは、< code > msg.className </ code > 文字列プロパティを設定することで実行時に設定できます。</ p >
43+ < p > クラスが指定されている場合、そのクラスは親要素に追加されます。 このようにして、カスタムCSSを使用して、カードとその中の要素のスタイルを設定できます。 クラスは、< code > msg.className </ code > 文字列プロパティを設定することで実行時に設定できます。</ p >
4444</ script >
Original file line number Diff line number Diff line change 33 < p > 表示されているタブの切り替えが可能です。 < code > msg . payload < / c o d e > に
44The default function is to change the currently displayed tab . < code > msg.payload</ code > に表示対象のタブもしくはリンクの < code > { tab :"タブ名" } < / c o d e > 、 < b > タ ブ 名 < / b> 、もしくは、 < b > 添字 < / b > ( 0 起 点 ) を 指 定 し ま す 。 < / p>
55 < p > 空のタブ名("")を送信すると、表示されているページを更新します。また、"+1"を送ると次のタブ、"-1"を送ると前のタブに切り替えられます。</ p >
6- < p > widgetグループを表示を次のようなペイロードで制御できます 。< br / >
6+ < p > widgetグループの表示を次のようなペイロードで制御できます 。< br / >
77< code > { group :{ hide :[ "タブ名_グループ名" ] , show :[ "他_グループ_表示" ] , focus :true } } </ code > < br / >
88 < b > focus</ b > は、グループが表示されるよう必要に応じて画面をスクロールするためのパラメータで、省略可能です。グループの指定は < i > タブ名 < / i > と < i > グ ル ー プ 名 < / i> を下線 ( _ ) で結合したものを用います。空白は下線で置き換えます。 < / p >
99 < p > クライアントのブラウザが接続もしくは切断した場合、次のプロパティを持つメッセージを送信します:</ p >
You can’t perform that action at this time.
0 commit comments