Close
Angular React Web Components Blazor
Open Source

React Grid アイコンのカスタマイズ

Ignite UI for React IgrGrid アイコンは、公開されている API メソッドを使用して、別のコレクション セットのカスタム アイコンを使用するようにカスタマイズできます。

アイコンを登録すると、アイコンがローカルにキャッシュされるため、名前とコレクション名でそのアイコンを参照するコンポーネント間で再利用できます。参照を設定すると、名前でアイコンを参照するときに、どのコレクションのどのアイコンが使用されるかが変更されます。

// Add a new 'material' icon called 'filter_list' from string
registerIconFromText("filter_list", '<svg>...</svg>', "material");

// Add a new 'material' icon called 'my-filter_list' from svg url
registerIcon("filter_list", "url" , "material")

// Sets the icon reference to the new registered icon.
setIconRef('filter_list', 'default', {
            name: 'filter_list',
            collection: 'material',
});

React アイコンのカスタマイズの例

以下のサンプルは、元の Material アイコンからカスタム Font Awesome SVG アイコンに切り替えて、再び Material に戻す方法を示しています。

内部アイコン

以下にすべての内部アイコンをリストします。エイリアスは、アイコンを参照できる名前です。ターゲット アイコンは内部アイコン名であり、ターゲット コレクションはアイコンが内部的に登録されているコレクションです。

エイリアスターゲット アイコンターゲット コレクション
addaddmaterial
add_childadd-childimx-icons
add_rowadd-rowimx-icons
arrow_backarrow_backmaterial
arrow_drop_downarrow_drop_upmaterial
arrow_forwardarrow_forwardmaterial
arrow_nextchevron_rightmaterial
arrow_prevchevron_leftmaterial
case_sensitivecase-sensitiveimx-icons
carousel_nextarrow_forwardmaterial
carousel_prevarrow_backmaterial
chevron_leftchevron_leftmaterial
chevron_rightchevron_rightmaterial
clockaccess_timematerial
closeclosematerial
collapseexpand_lessmaterial
confirmcheckmaterial
date_rangedate_rangematerial
deletedeletematerial
drag_indicatordrag_indicatormaterial
editeditmaterial
errorerrormaterial
expandexpand_morematerial
expand_moreexpand_morematerial
file_downloadfile_downloadmaterial
filter_allselect-allimx-icons
filter_beforeis-beforeimx-icons
filter_containscontainsimx-icons
filter_does_not_containdoes-not-containimx-icons
filter_emptyis-emptyimx-icons
filter_equalequalsimx-icons
filter_falseis-falseimx-icons
filter_greater_thangreater-thanimx-icons
filter_greater_than_or_equalgreater-than-or-equalimx-icons
filter_inis-inimx-icons
filter_last_monthlast-monthimx-icons
filter_last_yearlast-yearimx-icons
filter_less_thanless-thanimx-icons
filter_less_than_or_equalless-than-or-equalimx-icons
filter_next_monthnext-monthimx-icons
filter_next_yearnext-yearimx-icons
filter_not_emptynot-emptyimx-icons
filter_not_equalnot-equalimx-icons
filter_not_nullis-not-nullimx-icons
filter_nullis-nullimx-icons
filter_starts_withstarts-withimx-icons
filter_this_monththis-monthimx-icons
filter_this_yearthis-yearimx-icons
filter_todaytodayimx-icons
filter_trueis-trueimx-icons
filter_yesterdayyesterdayimx-icons
first_pagefirst_pagematerial
group_workgroup_workmaterial
hidevisibility_offmaterial
import_exportimport_exportmaterial
input_collapsearrow_drop_upmaterial
input_clearclearmaterial
input_expandarrow_drop_downmaterial
jump_downjump-downimx-icons
jump_upjump-upimx-icons
last_pagelast_pagematerial
more_vertmore_vertmaterial
nextnavigate_nextmaterial
pinpin-leftimx-icons
prevnavigate_beforematerial
refreshrefreshmaterial
removecancelmaterial
searchsearchmaterial
selecteddonematerial
showvisibilitymaterial
sort_ascarrow_upwardmaterial
sort_descarrow_downwardmaterial
functionsfunctionsmaterial
table_rowstable_rowsmaterial
todaycalendar_todaymaterial
tree_collapseexpand_morematerial
tree_expandchevron_rightmaterial
unfold_lessunfold_lessmaterial
unfold_moreunfold_morematerial
unpinunpin-leftimx-icons
view_columnview_columnmaterial

コンポーネントで使用されるすべてのアイコンの内訳は以下のとおりです。

Grid (グリッド)

アイコン説明
addフィルター エントリを追加するために Excel フィルター メニューで使用されます。
arrow_back列を後方に移動するためにさまざまな UI 要素で使用されます。
arrow_drop_downトグル可能なメニューを示すためにさまざまなボタンで使用されます。
arrow_forward列を前方に移動するためにさまざまな UI 要素で使用されます。
cancel操作をキャンセルするためにさまざまな UI 要素で使用されます。
chevron_rightExcel スタイルのフィルタリングのように、展開可能なメニューを示すために使用されます。
close展開されたメニューを閉じるときに使用します。
confirm操作を確認するときに使用されます。
drag_indicator項目をドラッグできることを示すハンドルを表示するために使用されます。
error編集可能なセルで、誤ったデータ入力を示すために使用されます。
expand_moreExcel フィルタリング メニューで使用され、フィルターの追加を示します。
file_downloadExcel フィルター エクスポーターによって使用されます。
filter_さまざまなフィルタリング オペランドに使用されます。
group_workグループ化ドロップ領域で使用されます。
hideさまざまな UI 要素によって列を非表示にするために使用されます。
import_exportピボット データ セレクターが移動する際に使用されます。
input_clear入力フィールドで入力データをクリアするために使用されます。
nextフィルタリング行メニューでチップ間を移動するために使用されます。
pin列のピン固定のためにさまざまな UI 要素によって使用されます。
prevフィルタリング行メニューでチップ間を移動するために使用されます。
removeさまざまな UI 要素によって削除インジケーターとして使用されます。
refreshフィルター行メニューでフィルターを再読み込みするために使用されます。
selectedアクティブな選択を示すためにさまざまな UI 要素によって使用されます。
show列を表示するためにさまざまな UI 要素によって使用されます。
sort_ascソート方向を示すためにさまざまな UI 要素によって使用されます。
sort_descソート方向を示すためにさまざまな UI 要素によって使用されます。
functionsピボット グリッドとデータ セレクターによって使用されます。
table_rowsピボット グリッド データ セレクターによって使用されます。
tree_collapseツリーのような構造で、表示する情報を少なくするために使用されます。
tree_expandツリーのような構造で、詳細を表示するために使用します。
unpin列のピン固定のためにさまざまな UI 要素によって使用されます。
unfold_less階層グリッドですべての行を縮小するために使用されます。
unfold_more階層グリッドですべての行を展開するために使用されます。
view_columnピボット データ セレクターによって使用されます。

Paginator (ページネーター)

アイコン説明
first_page最初のページに移動するためのボタンで使用されます。
last_page最後のページに移動するためのボタンで使用されます。
prev前のページに移動するためのボタンで使用されます。
next次のページに移動するためのボタンで使用されます。

Action Strip (アクション ストリップ)

アイコン説明
add_childポップアップ メニューで使用されます。
add_rowポップアップ メニューで使用されます。
more_vertポップアップ メニューで使用されます。

API リファレンス

IgrGrid

その他のリソース

コミュニティに参加して新しいアイデアをご提案ください。