Feat(SQL, UI): Button Icons page, Command Button Links page created with get and set functionality.
This commit is contained in:
@@ -41,6 +41,10 @@ export default class PageDogLocations extends TableBasePage {
|
||||
jsonRow[flagLocationParent] = this.getIdLocationParentRow(row);
|
||||
jsonRow[flagName] = DOM.getElementAttributeValueCurrent(inputName);
|
||||
jsonRow[flagActive] = buttonActive.classList.contains(flagDelete);
|
||||
|
||||
console.log("jsonRow");
|
||||
console.log(jsonRow);
|
||||
|
||||
return jsonRow;
|
||||
}
|
||||
getIdLocationParentRow(row) {
|
||||
@@ -54,9 +58,7 @@ export default class PageDogLocations extends TableBasePage {
|
||||
let newRows = tbody.querySelectorAll('tr.' + flagRowNew);
|
||||
let newestRow = newRows[0];
|
||||
let clickableElementsSelector = [
|
||||
'td.' + flagDog + ' div.' + flagDog
|
||||
, ',td.' + flagLocationCategory + ' div.' + flagLocationCategory
|
||||
, ',td.' + flagLocation + ' div.' + flagLocation
|
||||
'td.' + flagLocationParent + ' div.' + flagLocationParent
|
||||
].join('');
|
||||
newestRow.querySelectorAll(clickableElementsSelector).forEach((clickableElement) => {
|
||||
clickableElement.click();
|
||||
@@ -65,17 +67,66 @@ export default class PageDogLocations extends TableBasePage {
|
||||
|
||||
hookupTableMain() {
|
||||
super.hookupTableMain();
|
||||
this.hookupFieldsLocationCategory();
|
||||
this.hookupFieldsLocationParent();
|
||||
this.hookupFieldsNameTable();
|
||||
this.hookupFieldsActive();
|
||||
}
|
||||
hookupFieldsLocationParent() {
|
||||
/*
|
||||
this.hookupTableCellDdlPreviews(
|
||||
flagLocationParent
|
||||
, Utils.getListFromDict(locations)
|
||||
, Utils.getListFromDict(locations).filter(location =>
|
||||
(
|
||||
location[attrIdLocation] == idLocationRow
|
||||
|| idLocationRow < 1
|
||||
)
|
||||
) // .sort((a, b) => a[flagName].localeCompare(b[flagName]))
|
||||
, null // cellSelector
|
||||
, (cellSelector) => { this.hookupLocationParentDdls(cellSelector); }
|
||||
,
|
||||
);
|
||||
|
||||
fieldFlag
|
||||
, optionList
|
||||
, cellSelector = null
|
||||
, ddlHookup = (ddlSelector) => { this.hookupTableCellDdls(ddlSelector); }
|
||||
, changeHandler = (event, element) => { this.handleChangeNestedElementCellTable(event, element); }
|
||||
) {
|
||||
|
||||
*/
|
||||
let cellSelector = idTableMain + ' > tbody > tr > td.' + flagLocationParent;
|
||||
this.hookupEventHandler("click", cellSelector + ' div.' + flagLocationParent, (event, div) => {
|
||||
let row = DOM.getRowFromElement(div);
|
||||
let idLocationRow = Number(row.getAttribute(attrIdLocation));
|
||||
Utils.consoleLogIfNotProductionEnvironment({ idLocationRow });
|
||||
this.handleClickTableCellDdlPreview(
|
||||
event
|
||||
, div
|
||||
, flagLocationParent
|
||||
, Utils.getListFromDict(locations).filter(location =>
|
||||
(
|
||||
location[attrIdLocation] != idLocationRow
|
||||
|| idLocationRow < 1
|
||||
)
|
||||
) // .sort((a, b) => a[flagName].localeCompare(b[flagName]))
|
||||
, cellSelector
|
||||
, (ddlSelector) => { this.hookupTableCellDdls(
|
||||
ddlSelector
|
||||
, (event, element) => { this.handleChangeNestedElementCellTable(event, element); }
|
||||
); }
|
||||
);
|
||||
});
|
||||
this.hookupTableCellDdls(
|
||||
cellSelector + ' select.' + flagLocationParent
|
||||
, (event, element) => { this.handleChangeNestedElementCellTable(event, element); }
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
hookupLocationParentDdls(ddlSelector) {
|
||||
this.hookupChangeHandlerTableCells(ddlSelector, (event, element) => { this.handleChangeNestedElementCellTable(event, element); });
|
||||
}
|
||||
*/
|
||||
|
||||
leave() {
|
||||
super.leave();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user