Postingan

Contekan Flutter ListView inside SingleChildScrollView

 Tambahkan script dibawah pada ListView Widget      shrinkWrap : true ,      physics : NeverScrollableScrollPhysics (), Dan Tambahkan scrip dibawah pada SingleChildScrolView Widget      physics : ScrollPhysics (),

Contekan Codeigniter Select2 Ajax

 Berikut ini merupakan contekan source code Select2 dengan Ajax PHP CSS dan JS Select2 < link href = "https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel = "stylesheet" /> < script src = "https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js" ></ script > *Butuh Jquery juga Script AJAX $ ( document ). ready ( function () { $ ( "#nim" ). select2 ({ placeholder: 'Pilih Data' , minimumInputLength: 4 , ajax: { url: " <?= base_url () ? > datauser" , dataType: 'json' , delay: 250 , data : function ( data ) { return { searchTerm: data . term // search term }; }, processResults : function ( response ) { return { results:response }; ...

Contekan Flutter Confirmation Dialog

Berikut merupakan contekan source code untuk menampilkan dialog konfirmasi. Bisa di copy dan paste ke dalam method atau langsung kedalam onPress/onTap button.                     // set up the buttons Widget cancelButton = FlatButton ( child : Text ( "Batal" ), onPressed : () { Navigator . pop ( context ); }, ); Widget continueButton = FlatButton ( child : Text ( "Keluar" ), onPressed : () async { // set up onpress buttons }, ); // set up the AlertDialog AlertDialog alert = AlertDialog ( title : Center ( child : Icon ( Icons . logout ), ), content : Text ( "Anda akan Keluar Aplikasi?" ), act...

Contekan Select2

  Link CSS dan JS untuk SELECT2 < link href = "https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel = "stylesheet" /> < script src = "https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js" ></ script > SCRIPT General untuk Load select2 menggunakan nama class < script > $ ( ".select2" ). select2 (); </ script > *Butuh JQUERY

Contekan dump dan restore MySQL

dump mysqldump -u root -p db_name > db_rename restore mysqldump-u root -p db_name_restore > db_file.sql Penjelasan root = user mysql yang digunakan, ganti dengan user anda db_name = Database yang mau di backup  db_rename = Nama file backup db_name_restore = Database yang akan di gunakan sebagai tempat restore db_file.sql = File Hasil dari dump database, nama file full dengan extensi

Script mysql non aggregate column

Jalankan Query dibawah ini. Untuk mengatasi error non aggregate column.      SET GLOBAL sql_mode=(SELECT REPLACE (@@sql_mode, 'ONLY_FULL_GROUP_BY' , '' ));

Contekan datatables export

CSS < link rel = "stylesheet" href = "https://cdn.datatables.net/1.11.4/css/jquery.dataTables.min.css" > < link rel = "stylesheet" href = "https://cdn.datatables.net/buttons/2.2.2/css/buttons.dataTables.min.css" > Javascript < script src = "https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js" ></ script > < script src = "https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js" ></ script > < script src = "https://cdn.datatables.net/buttons/2.0.1/js/dataTables.buttons.min.js" ></ script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" ></ script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js" ></ script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js" ></ script...