Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I want to display a country code picker in a custom dialog (that I'm opening from Fluidity).
What I really want to do is to just display the already created datatype called "CountrySelectList" and bind the value to "$scope.countrycode"
At the moment I can figure out how to create a dropdown in code with something like this
$scope.properties = [{ label: 'Select Language', description: 'Pick the language to upload', view: 'DropDown', value: $scope.languagecode, config: { multiPicker: "0", entityType: "CountrySelectList", items : [{id:0, value:"EN"}, {id:1,value:"FR"}] } }]
which kind of works, but I want to re-use the existing picker (and also hopefully get the pre-value back out, not the id)
In the template I'm using
<umb-property property="property" ng-repeat="property in properties"><umb-editor model="property"></umb-editor></umb-property>
Hi Andrew,
In this article I wrote how to reuse existing datatypes in your own angular components.
https://24days.in/umbraco-cms/2014/umbraco-angular-tips/
Seeing the article is almost 4 years old not everything may work.
Dave
That looks about exactly what I was looking for! Time flies but I'm sure its close enough to get me going .
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using a datatype in a dialog
I want to display a country code picker in a custom dialog (that I'm opening from Fluidity).
What I really want to do is to just display the already created datatype called "CountrySelectList" and bind the value to "$scope.countrycode"
At the moment I can figure out how to create a dropdown in code with something like this
which kind of works, but I want to re-use the existing picker (and also hopefully get the pre-value back out, not the id)
In the template I'm using
Hi Andrew,
In this article I wrote how to reuse existing datatypes in your own angular components.
https://24days.in/umbraco-cms/2014/umbraco-angular-tips/
Seeing the article is almost 4 years old not everything may work.
Dave
That looks about exactly what I was looking for! Time flies but I'm sure its close enough to get me going .
is working on a reply...