This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(`#AddChildGridRow_Btn_${curGridName.split('_')[1]}`); | |
let childGridAddRecordBtnEl = $(`#AddChildGridRow_Btn_${curGridName.split('_')[1]}`); | |
console.log(childGridAddRecordBtnEl); | |
setTimeout(function () { | |
if (childGridAddRecordBtnEl.length === 0) { | |
console.log("parent grid case"); | |
$(`${curGridName}AddGridRow_Btn`).trigger("click")[0]; | |
} else { | |
console.log("child grid case"); | |
childGridAddRecordBtnEl.trigger("click")[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Construct a filter object and apply it to the grid data source filters | |
let currentColumnFilter = { | |
field: currentKeyField, | |
operator: filterMenuOperatorDDInstance.value(), | |
value: filterMenuKeyFieldDDInstance.value() | |
}; | |
gridInstance.dataSource.filter(currentColumnFilter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setup wrapper events | |
popupEditorDropDownWrappers.bind("focus", (e) => { | |
console.log(e); | |
let currDDList = $(e.currentTarget).children().eq(2).data("kendoDropDownList"); | |
if (currDDList != undefined) { | |
console.log(currDDList); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function generateStepNames(colorNamesArray: Array<string>, numOfSteps: number, baseColor: string) { | |
if (numOfSteps < 0 || numOfSteps > 10) { | |
return console.log("Invalid color step range provided."); | |
} | |
for (let index = 0; index < numOfSteps; index++) { | |
colorNamesArray.push("fe-" + baseColor + "-0" + index.toString()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openConfig(config: string, hidewindow: boolean = false) {; | |
//config will be sent here from the dropdown or default to default; | |
if ($('#OnScreenConfig').val() != "") config = $('#OnScreenConfig').val(); | |
else config = $('#OnScreenConfig').data('kendoDropDownList').text(); | |
var self = this; | |
// Setup ListView DataSource object | |
self.gridConfigManagerDataSource = new kendo.data.DataSource({ | |
transport: { | |
create: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Selectors | |
.some-class { | |
rule: value; | |
} | |
#IdSelector { | |
rule: value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Casing | |
// Pascal casing | |
StringVariable: string; | |
// Came casing | |
stringVariable: string; | |
// Snake casing | |
string_variable: string; | |
// Line spacing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Casing | |
// Pascal casing | |
string StringVariable; | |
// Came casing | |
string stringVariable; | |
// Snake casing | |
string string_variable; | |
// Line spacing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.Format("[Notice_Key:eq:{0}:null:null:null:and][Notice_Type:eq:{1}:null:null:null:and]", Notice_Key, Notice_Type); |
NewerOlder