public function addScripts() {
		if ( $this->isConnectScreen( get_current_screen() ) ) {
			// Enqueue bglib-connect js.
			$handle = 'bglib-connect';

			wp_register_script(
				$handle,
				Configs::get( 'libraryUrl' ) . 'src/assets/js/connect.js' ,
				array( 'jquery' ),
				date( 'Ymd' ),
				false
			);

			$translation = array(
				'settingsSaved' => __( 'Settings saved.', 'boldgrid-library' ),
				'unknownError'  => __( 'Unknown error.', 'boldgrid-library' ),
				'ajaxError'     => __( 'Could not reach the AJAX URL address. HTTP error: ', 'boldgrid-library' ),
			);

			wp_localize_script( $handle, 'BoldGridLibraryConnect', $translation );

			wp_enqueue_script( $handle );

			// Enqueue jquery-toggles js.
			wp_enqueue_script(
				'jquery-toggles',
				Configs::get( 'libraryUrl' ) . 'build/toggles.min.js',
				array( 'jquery' ),
				date( 'Ymd' ),
				true
			);

			// Enqueue jquery-toggles css.
			wp_enqueue_style( 'jquery-toggles-full',
				Configs::get( 'libraryUrl' ) . 'build/toggles-full.css', array(), date( 'Ymd' ) );

			/**
			 * Add additional scripts to Connect page.
			 *
			 * @since 2.4.0
			 */
			do_action( 'Boldgrid\Library\Library\Page\Connect\addScripts' );
		}
	}
public function addScripts() {
		if ( $this->isConnectScreen( get_current_screen() ) ) {
			// Enqueue bglib-connect js.
			$handle = 'bglib-connect';

			wp_register_script(
				$handle,
				Configs::get( 'libraryUrl' ) . 'src/assets/js/connect.js' ,
				array( 'jquery' ),
				date( 'Ymd' ),
				false
			);

			$translation = array(
				'settingsSaved' => __( 'Settings saved.', 'boldgrid-library' ),
				'unknownError'  => __( 'Unknown error.', 'boldgrid-library' ),
				'ajaxError'     => __( 'Could not reach the AJAX URL address. HTTP error: ', 'boldgrid-library' ),
			);

			wp_localize_script( $handle, 'BoldGridLibraryConnect', $translation );

			wp_enqueue_script( $handle );

			// Enqueue jquery-toggles js.
			wp_enqueue_script(
				'jquery-toggles',
				Configs::get( 'libraryUrl' ) . 'build/toggles.min.js',
				array( 'jquery' ),
				date( 'Ymd' ),
				true
			);

			// Enqueue jquery-toggles css.
			wp_enqueue_style( 'jquery-toggles-full',
				Configs::get( 'libraryUrl' ) . 'build/toggles-full.css', array(), date( 'Ymd' ) );

			/**
			 * Add additional scripts to Connect page.
			 *
			 * @since 2.4.0
			 */
			do_action( 'Boldgrid\Library\Library\Page\Connect\addScripts' );
		}
	}
public function addScripts ( ) { if ( $ this -> isConnectScreen ( get_current_screen ( ) ) ) { // Enqueue bglib-connect js. $ handle = 'bglib-connect' ; wp_register_script ( $ handle , Configs :: get ( 'libraryUrl' ) . 'src/assets/js/connect.js' , array ( 'jquery' ) , date ( 'Ymd' ) , false ) ; $ translation = array ( 'settingsSaved' => __ ( 'Settings saved.' , 'boldgrid-library' ) , 'unknownError' => __ ( 'Unknown error.' , 'boldgrid-library' ) , 'ajaxError' => __ ( 'Could not reach the AJAX URL address. HTTP error: ' , 'boldgrid-library' ) , ) ; wp_localize_script ( $ handle , 'BoldGridLibraryConnect' , $ translation ) ; wp_enqueue_script ( $ handle ) ; // Enqueue jquery-toggles js. wp_enqueue_script ( 'jquery-toggles' , Configs :: get ( 'libraryUrl' ) . 'build/toggles.min.js' , array ( 'jquery' ) , date ( 'Ymd' ) , true ) ; // Enqueue jquery-toggles css. wp_enqueue_style ( 'jquery-toggles-full' , Configs :: get ( 'libraryUrl' ) . 'build/toggles-full.css' , array ( ) , date ( 'Ymd' ) ) ; /**
			 * Add additional scripts to Connect page.
			 *
			 * @since 2.4.0
			 */ do_action ( 'Boldgrid\Library\Library\Page\Connect\addScripts' ) ; } }
Enqueue scripts needed for this page.

@since 2.4.0

@hook admin_enqueue_scripts
Enqueue scripts needed for this page .