This repository was archived by the owner on Dec 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -310,5 +310,14 @@ export default class MainController {
310310 return option ;
311311 } ,
312312 } ;
313+
314+ $scope . transclusionModel = [ ] ;
315+ $scope . transclusionData = [
316+ { id : 1 , label : 'David' } ,
317+ { id : 2 , label : 'Jhon' } ,
318+ { id : 3 , label : 'Danny' } ,
319+ ] ;
320+ $scope . transclusionSettings = {
321+ } ;
313322 }
314323}
Original file line number Diff line number Diff line change @@ -973,6 +973,47 @@ <h3>Code</h3>
973973 smartButtonTextConverter(skip, option) {
974974 return option;
975975 },
976+ };
977+ </ div >
978+ </ div >
979+ </ div >
980+ </ div >
981+ < div uib-accordion-group heading ="Custom trigger element using transclusion ">
982+ < div class ="row ">
983+ < div class ="col-xs-12 ">
984+ Example to show that you can replace the button with a custom element
985+ </ div >
986+ </ div >
987+ < div class ="row ">
988+ < div class ="col-xs-12 col-sm-6 ">
989+ < h3 > Demo</ h3 >
990+ < div class ="well ">
991+ < div ng-dropdown-multiselect ="" options ="transclusionData " selected-model ="transclusionModel " extra-settings ="transclusionSettings ">
992+ < span class ="custom-trigger "> My Custom trigger</ span >
993+ </ div >
994+ </ div >
995+ </ div >
996+ < div class ="col-xs-12 col-sm-6 ">
997+ < h3 > The model:</ h3 >
998+ < pre > {{transclusionModel|json}}</ pre >
999+ </ div >
1000+ </ div >
1001+ < div class ="row ">
1002+ < div class ="col-md-12 ">
1003+ < h3 > Code</ h3 >
1004+ < div hljs language ="javascript ">
1005+ // HTML
1006+ < div ng-dropdown-multiselect ="" options ="transclusionData " selected-model ="transclusionModel " extra-settings ="transclusionSettings ">
1007+ < span class ="custom-trigger "> My Custom trigger</ span >
1008+ </ div >
1009+
1010+ $scope.transclusionModel = [];
1011+ $scope.transclusionData = [
1012+ { id: 1, label: 'David' },
1013+ { id: 2, label: 'Jhon' },
1014+ { id: 3, label: 'Danny' },
1015+ ];
1016+ $scope.transclusionSettings = {
9761017};
9771018 </ div >
9781019 </ div >
Original file line number Diff line number Diff line change @@ -395,6 +395,13 @@ footer a:hover {
395395 opacity : 0.5 ;
396396 }
397397}
398+
399+ .custom-trigger {
400+ padding : 0.75em ;
401+ margin-top : 1.5em ;
402+ border : 1px solid #ccc ;
403+ cursor : pointer ;
404+ }
398405/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
399406 @media only screen and (min-width : 480px ) and (max-width : 767px ) {
400407}
You can’t perform that action at this time.
0 commit comments