Skip to content

nekronos/FuseNativeControls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FuseNativeControls

Build Status

This library provides cross-platform abstractions of native Android and iOS controls for fuse.

Implemented so far:

  • DatePicker
  • TimePicker

Example:

<NativeViewHost>
	<Native.DatePicker ux:Name="datePicker">
		<JavaScript>
			var date = { year: 2018, month: 1, day: 13 };
			var minDate = { year: 2016, month: 1, day: 1 };
			var maxDate = { year: 2020, month: 1, day: 31 };

			datePicker.setDate(date);
			datePicker.setMaxDate(maxDate);
			datePicker.setMinDate(minDate);
			
			datePicker.CurrentDate.addSubscriber(function () {
				var d = datePicker.CurrentDate.value;
				console.log("Date changed: " + d["year"] + "-" + d["month"] + "-" + d["day"]);
			});

		</JavaScript>
	</Native.DatePicker>
</NativeViewHost>

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages