Skip to content

Commit

Permalink
picnicLifeCycle
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Oct 16, 2023
1 parent a734996 commit ab9f2a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/neodigm55__v3_1.css
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ neodigm-picnic[data-n55-theme='party'] DIV{ border-color: var( --neodigm-theme-p
[data-n55-ampm-theme="dark"] neodigm-picnic > header > div { background-color: var( --neodigm-theme-night-alt )}
[data-n55-ampm-theme="dark"] neodigm-picnic div { background-color: var( --neodigm-theme-night )}

[data-n55-ampm-theme="light"] neodigm-picnic [data-n55-picnic-select='true'] { background-color: var( --neodigm-theme-night-alt ) }
[data-n55-ampm-theme="light"] neodigm-picnic [data-n55-picnic-select='true'] { background-color: var( --neodigm-theme-brand-alt ) }
[data-n55-ampm-theme="dark"] neodigm-picnic [data-n55-picnic-select='true'] { background-color: var( --neodigm-theme-brand ) }

/* Neodigm Picnic End */
9 changes: 5 additions & 4 deletions dist/neodigm55__v3_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1637,15 +1637,16 @@ class NeodigmPicnic {
}
select( elRow ){ // TODO fire callback
let elRowContr = elRow.parentElement
if( elRowContr ){ // TODO multiselect
if( elRowContr ){ // Unselect all - TODO multiselect
elRowContr = elRowContr.querySelector( "[data-n55-picnic-select='true']" )
if( elRowContr ) elRowContr.dataset.n55PicnicSelect = "false"
}

if(this.fOnRowClick[_sId]) this.fOnRowClick[_sId]( this.sId )
if(this.fOnRowClick["def"]) this.fOnRowClick["def"]( this.sId )
if( neodigmOpt.N55_GTM_DL_PICNIC ) neodigmUtils.doDataLayer( neodigmOpt.N55_GTM_DL_PICNIC, _sId )
elRow.dataset.n55PicnicSelect = "true"
console.log( " ~~~ elRow | " , elRow)
}
setOnRowClick ( _f, id="def" ){ this.fOnRowClick[ id ] = _f; return this; }
setOnRowClick( _f, id="def" ){ this.fOnRowClick[ id ] = _f; return this; }
}
let neodigmPicnic = new NeodigmPicnic( document, ["neodigm-picnic"] )

Expand Down

0 comments on commit ab9f2a9

Please sign in to comment.