Skip to content

Commit eb177f7

Browse files
Merge pull request #8 from Membad/master
Added classes to show more button and improved captions
2 parents 359e82d + a4452e7 commit eb177f7

7 files changed

Lines changed: 10 additions & 5 deletions

File tree

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.17.0

dist/SimpleCheckboxSetSelector.mpk

29 Bytes
Binary file not shown.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SimpleCheckboxSetSelector",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "",
55
"license": "",
66
"author": "",

src/SimpleCheckboxSetSelector/widget/SimpleCheckboxSetSelector.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ define([
386386
dojoClass.add(node, "showmore-hidden");
387387
}
388388
}
389-
this.showMoreButton.innerHTML = "Show more";
389+
this.showMoreButton.classList.remove("showmore-showLess");
390+
this.showMoreButton.classList.add("showmore-showMore");
391+
this.showMoreButton.innerHTML = "Show More";
390392
this.showMoreHidden = true;
391393
},
392394

@@ -399,7 +401,9 @@ define([
399401
}
400402
}
401403

402-
this.showMoreButton.innerHTML = "Hide";
404+
this.showMoreButton.classList.remove("showmore-showMore");
405+
this.showMoreButton.classList.add("showmore-showLess");
406+
this.showMoreButton.innerHTML = "Show Less";
403407
this.showMoreHidden = false;
404408
},
405409

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="SimpleCheckboxSetSelector" version="1.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="SimpleCheckboxSetSelector" version="1.3.0" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="SimpleCheckboxSetSelector/SimpleCheckboxSetSelector.xml"/>
66
</widgetFiles>
29 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)