diff --git a/.gitignore b/.gitignore index e5a7b8d..4cd66f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -example/* \ No newline at end of file +examples/* \ No newline at end of file diff --git a/.npmignore b/.npmignore index e5a7b8d..4cd66f8 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1 @@ -example/* \ No newline at end of file +examples/* \ No newline at end of file diff --git a/example/index.html b/example/index.html deleted file mode 100644 index 68dd7dd..0000000 --- a/example/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - Example - - - - - - - -
- - - - - - \ No newline at end of file diff --git a/example/index.js b/example/index.js deleted file mode 100644 index bc56d3a..0000000 --- a/example/index.js +++ /dev/null @@ -1,42 +0,0 @@ -var map = L.map('map', {attributionControl:false}).setView([51.505, -0.09], 13); -L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); - -new L.cascadeButtons([ - {icon: 'fas fa-home', direction:'horizontal', ignoreActiveState:true , command: () =>{console.log('test') }}, - {icon: 'fas fa-home', direction:'horizontal', items:[ - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - ]}, - {icon: 'fas fa-home', direction:'horizontal', items: [ - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - ]}, -], {position:'topleft', direction:'vertical'}).addTo(map); - -new L.cascadeButtons([ - {icon: 'fas fa-home', direction:'vertical', ignoreActiveState:true , command: () =>{console.log('test') }}, - {icon: 'fas fa-home', direction:'vertical', items:[ - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - ]}, - {icon: 'fas fa-home', direction:'vertical', items: [ - {icon: 'fas fa-home', command: () =>{console}}, - {icon: 'fas fa-home', command: () =>{console}}, - ]}, -], {position:'bottomright', direction:'horizontal'}).addTo(map); \ No newline at end of file diff --git a/example/styles.css b/example/styles.css deleted file mode 100644 index 89c8128..0000000 --- a/example/styles.css +++ /dev/null @@ -1,5 +0,0 @@ -html, body, #map { - height: 100%; - width: 100%; - margin:0; -} \ No newline at end of file