右クリックメニューの不具合を修正する
アプリ用(本来は右クリックメニュー):
緑テーマ class="green_theme"
赤テーマ class="red_theme"
マイテーマ class="my_theme"
未設定
レベル1HTML
レベル2
レベル3
レベル3
レベル2
レベル3
レベル3
レベル1
レベル2
レベル3
レベル3
レベル2
レベル3
レベル3
◎右クリック対象領域 設定
メニュー項目は下記のメニュー項目編集の文字列から生成
処理関数は下記のオブジェクト編集の文字列から生成
メニュー項目編集の「適用」をクリックするとメニュー項目とオブジェクトが反映します
色は下記の色編集の文字列から生成
色編集の「適用」をクリックすると色が反映します
・選択ロジック
return function (ev) { var ids = []; if (ev.target.classList.contains("no1")) { ids[0] = "items"; ids[1] = "methods"; ids[2] = "colors"; } else if (ev.target.classList.contains("no2")) { ids[0] = "items2"; ids[1] = "methods"; ids[2] = "colors"; } else { ids[0] = "items2"; ids[1] = "methods2"; ids[2] = "colors2"; } return ids; }
・メニュー項目編集
行編集 追加 :addLine 子追加 :addChildLine 編集 :editLine 削除 :delLine 編集 垂直分割 水平分割 最大化" 100% 200% 400% 部品操作 部品追加 ノード 接続線 移動 変形 属性変更 クリア
行編集2 追加2 :addLine 子追加2 :addChildLine 編集2 :editLine 削除2 :delLine 編集 垂直分割 水平分割 最大化" 100% 200% 400% 部品操作 部品追加 ノード 接続線 移動 変形 属性変更 クリア
・オブジェクト編集
function MyMenuMethods() { } MyMenuMethods.prototype.addLine = function() { alert("MyMenuMethods.addLine"); } MyMenuMethods.prototype.addChildLine = function() { alert("MyMenuMethods.addChildLine"); } MyMenuMethods.prototype.editLine = function() { alert("MyMenuMethods.editLine"); } MyMenuMethods.prototype.delLine = function() { alert("MyMenuMethods.delLine"); } return new MyMenuMethods();
function MyMenuMethods() { } MyMenuMethods.prototype.addLine = function() { alert("MyMenuMethods.addLine2"); } MyMenuMethods.prototype.addChildLine = function() { alert("MyMenuMethods.addChildLine2"); } MyMenuMethods.prototype.editLine = function() { alert("MyMenuMethods.editLine2"); } MyMenuMethods.prototype.delLine = function() { alert("MyMenuMethods.delLine2"); } return new MyMenuMethods();
・色編集
一段目メニューの文字の色 : #ff0000 一段目背景色 通常時 : #0000e0 一段目ボーダー色 : #000080 一段目背景色 マウスON時 : #0000ff 二段目背景色 通常時 : #0000e0 二段目背景色 マウスON時 : #0000ff 三段目背景色 通常時 : #0000e0 三段目背景色 マウスON時 : #0000ff 下位マークの色 : #00ff00
一段目メニューの文字の色 : #ffffff 一段目背景色 通常時 : #0000e0 一段目ボーダー色 : #000080 一段目背景色 マウスON時 : #0000ff 二段目背景色 通常時 : #0000e0 二段目背景色 マウスON時 : #0000ff 三段目背景色 通常時 : #0000e0 三段目背景色 マウスON時 : #0000ff 下位マークの色 : #ffffff
<TODOと状況>