@@ -649,7 +649,7 @@ let DTconfig = {
649649 layout : {
650650 top : [
651651 "search" ,
652- "inputPaging" ,
652+ // "inputPaging",
653653 "search" ,
654654
655655 {
@@ -666,7 +666,7 @@ let DTconfig = {
666666 } ,
667667
668668 titleAttr : "copy" ,
669- text : "⧉ ކޮޕީ " ,
669+ text : "ކޮޕީކުރޭ " ,
670670
671671 // Shown at the very top of the exported document
672672 // title: * (default) - Use the HTML page's title value.
@@ -747,142 +747,117 @@ let DTconfig = {
747747 } ,
748748 } ,
749749
750- {
751- extend : "collection" ,
752- key : {
753- key : "m" ,
754- altKey : true ,
755- } ,
756- text : "⌥ އިތުރު" ,
757- background : false ,
758-
759- buttons : [
760- {
761- extend : "colvis" ,
762- key : {
763- key : "s" ,
764- altKey : true ,
765- } ,
766-
767- text : "☰ ދައްކާ/ފޮރުވާ" ,
768- background : false ,
769- postfixButtons : [
770- // https://datatables.net/forums/discussion/36516
771- {
772- extend : "colvisGroup" ,
773- text : "ހުރިހާ ދައްކާ +" ,
774- show : ":hidden" ,
775- titleAttr : "show all" ,
776- } ,
777- // https://datatables.net/extensions/buttons/examples/column_visibility/restore.html
778- {
779- extend : "colvisRestore" ,
780- text : "ރީސެޓްކުރޭ ↺" ,
781- titleAttr : "reset toggle" ,
782- } ,
783- ] ,
784- } ,
785- {
786- extend : "searchBuilder" ,
787- key : {
788- key : "b" ,
789- altKey : true ,
790- } ,
791- titleAttr : "custom search" ,
792- } ,
793- {
794- extend : "searchPanes" ,
795- key : {
796- key : "v" ,
797- altKey : true ,
798- } ,
799-
800- config : {
801- cascadePanes : true ,
802-
803- viewTotal : true ,
804-
805- collapse : false ,
806- dtOpts : {
807- select : {
808- style : "multi+shift" ,
809- } ,
810- } ,
811- } ,
812- } ,
813- {
814- extend : "pageLength" ,
815- key : {
816- key : "p" ,
817- altKey : true ,
818- } ,
819- background : false ,
820- } ,
821- //
822-
823- // https://stackoverflow.com/questions/53600956/how-to-add-custom-button-in-r-shiny-datatable
824- // https://datatables.net/extensions/buttons/examples/initialisation/customHTMLButtons.html
825-
826- "<h3></h3>" ,
827- //'<h3 class="not-top-heading">Column Visibility</h3>',
828- // places css in DT inline css file
829-
830- {
831- text : "ސަފުހާގެ ލިންކު ކޮޕީކުރޭ" , // Button label
832- action : function ( e , dt , node , config ) {
833- // Click handler. what should happen when the button is clicked
834- // e: The click event. when and where the click happened
835- // dt: The DataTable API instance. the DataTable table
836- // node: The button element itself that was clicked
837- // config: The button configuration. its settings
838- //
839- copyURLToClipButton ( ) ; // This will run
840-
841- // alert("Button activated");
842- // dt.ajax.reload();
843- } ,
844- } ,
845- // https://datatables.net/extensions/buttons/custom
846-
847- {
848- text : "ފިލިތައް ފޮރުވާ/ދައްކާ" ,
849- action : function ( e , dt , node , config ) {
850- toggleTashkeel ( ) ;
851- } ,
852- } ,
853-
854- /*//
855- {
856- text: "⭐ ތަރުޖަމާތައް",
857- autoClose: true,
858- action: function (e, dt, node, config) {
859- const dropdown = document.getElementById(
860- "translationDropdown"
861- );
862- if (dropdown) {
863- dropdown.classList.toggle("active");
864- // console.log(
865- // "Active class toggled:",
866- // dropdown.classList.contains("active")
867- // );
868- // Prevent any default actions that might interfere
869- e.preventDefault();
870- e.stopPropagation();
871- // without these doesnt work it seems
872- } else {
873- console.error("Translation dropdown element not found");
874- }
875- // closes the collection, detach works too
876- $(".dt-button-collection").hide();
877- },
878- },
879- //*/
880-
881- "<h3></h3>" ,
882-
883- //
884- ] ,
885- } ,
750+ // {
751+ // extend: "collection",
752+ // key: {
753+ // key: "m",
754+ // altKey: true,
755+ // },
756+ // text: "⌥ އިތުރު",
757+ // background: false,
758+
759+ // buttons: [
760+ // {
761+ // extend: "colvis",
762+ // key: {
763+ // key: "s",
764+ // altKey: true,
765+ // },
766+
767+ // text: "☰ ދައްކާ/ފޮރުވާ",
768+ // background: false,
769+ // postfixButtons: [
770+ // // https://datatables.net/forums/discussion/36516
771+ // {
772+ // extend: "colvisGroup",
773+ // text: "ހުރިހާ ދައްކާ +",
774+ // show: ":hidden",
775+ // titleAttr: "show all",
776+ // },
777+ // // https://datatables.net/extensions/buttons/examples/column_visibility/restore.html
778+ // {
779+ // extend: "colvisRestore",
780+ // text: "ރީސެޓްކުރޭ ↺",
781+ // titleAttr: "reset toggle",
782+ // },
783+ // ],
784+ // },
785+ // {
786+ // extend: "searchBuilder",
787+ // key: {
788+ // key: "b",
789+ // altKey: true,
790+ // },
791+ // titleAttr: "custom search",
792+ // },
793+ // {
794+ // extend: "searchPanes",
795+ // key: {
796+ // key: "v",
797+ // altKey: true,
798+ // },
799+
800+ // config: {
801+ // cascadePanes: true,
802+
803+ // viewTotal: true,
804+
805+ // collapse: false,
806+ // dtOpts: {
807+ // select: {
808+ // style: "multi+shift",
809+ // },
810+ // },
811+ // },
812+ // },
813+ // {
814+ // extend: "pageLength",
815+ // key: {
816+ // key: "p",
817+ // altKey: true,
818+ // },
819+ // background: false,
820+ // },
821+ // //
822+
823+ // // https://stackoverflow.com/questions/53600956/how-to-add-custom-button-in-r-shiny-datatable
824+ // // https://datatables.net/extensions/buttons/examples/initialisation/customHTMLButtons.html
825+
826+ // "<h3></h3>",
827+ // //'<h3 class="not-top-heading">Column Visibility</h3>',
828+ // // places css in DT inline css file
829+
830+ // {
831+ // text: "ސަފުހާގެ ލިންކު ކޮޕީކުރޭ", // Button label
832+ // action: function (e, dt, node, config) {
833+ // // Click handler. what should happen when the button is clicked
834+ // // e: The click event. when and where the click happened
835+ // // dt: The DataTable API instance. the DataTable table
836+ // // node: The button element itself that was clicked
837+ // // config: The button configuration. its settings
838+ // //
839+ // copyURLToClipButton(); // This will run
840+
841+ // // alert("Button activated");
842+ // // dt.ajax.reload();
843+ // },
844+ // },
845+ // // https://datatables.net/extensions/buttons/custom
846+
847+ // {
848+ // text: "ފިލިތައް ފޮރުވާ/ދައްކާ",
849+ // action: function (e, dt, node, config) {
850+ // toggleTashkeel();
851+ // },
852+ // },
853+
854+
855+
856+ // "<h3></h3>",
857+
858+ // //
859+ // ],
860+ // },
886861
887862 /*{
888863 extend: "pageLength",
0 commit comments