dist/js/old/d3-main-V1.js
/**** --- TABLE KEYS controller: table-keys  ***/
TABLE KEYS controller: table-keys
TABLE KEYS controller : table - keys
function  init_table_keys(){
		let keys = d3.selectAll('.table-keys--key');
		keys.on('click', function(){
			let key_id = this.id;
			let parent = this.parentNode.parentNode;
			let table_rows = d3.selectAll('.table-row-parent').filter(function(d){
				let attr_name = d3.select(this).attr('data-name');
				return attr_name === key_id;
			});
			d3.select(parent).classed("table-key--active", d3.select(parent).classed("table-key--active") ? false : true);
			if(!d3.select(parent).classed("table-key--active")){
				table_rows.classed('hidden', true);
			}else{
				table_rows.classed('hidden', false);
			}
		});
	}
function init_table_keys ( ) { let keys = d3 . selectAll ( '.table-keys--key' ) ; keys . on ( 'click' , function ( ) { let key_id = this . id ; let parent = this . parentNode . parentNode ; let table_rows = d3 . selectAll ( '.table-row-parent' ) . filter ( function ( d ) { let attr_name = d3 . select ( this ) . attr ( 'data-name' ) ; return attr_name === key_id ; } ) ; d3 . select ( parent ) . classed ( "table-key--active" , d3 . select ( parent ) . classed ( "table-key--active" ) ? false : true ) ; if ( ! d3 . select ( parent ) . classed ( "table-key--active" ) ) { table_rows . classed ( 'hidden' , true ) ; } else { table_rows . classed ( 'hidden' , false ) ; } } ) ; }
TABLE KEYS controller: table-keys
TABLE KEYS controller : table - keys
//console.log('wellcome from init_table_keys'); // console.log('init_table_keys', this.id, this.parentNode.parentNode); //console.log("d", d, d3.select(this).attr('data-name')); // console.log('init_table_keys table_rows', table_rows); // console.log('table-key--active', "active");