WP_List_Table::_js_vars()
Send required variables to JavaScript land
Source
File: wp-admin/includes/class-wp-list-table.php
public function _js_vars() {
$args = array(
'class' => get_class( $this ),
'screen' => array(
'id' => $this->screen->id,
'base' => $this->screen->base,
)
);
printf( "<script type='text/javascript'>list_args = %s;</script>\n", wp_json_encode( $args ) );
}