Module: ko/ui/filepath

ko/ui filepath element

This module inherits methods and properties from the module it extends. Using the module:ko/ui/filepath.create function will return a element with a text field and a button. The button opens a dialog to search for and select some filepath based on the type passed in; "file", "dir", "exe", "files", "remote".

Example

var filepath = require("ko/ui/filepath").create({filetype:"file"});
panel = require("ko/ui/panel").create()
panel.addRow(filepath);
panel.open();
// userselects a path
filepath.value(); //outputs selected path.
Author:
  • NathanR, CareyH
License:
  • Mozilla Public License v. 2.0

Extends

Classes

Model()

Methods


require("ko/ui/filepath").create( [options])

Create a new filepath UI element

Parameters:
Name Type Argument Description
options object <optional>

An object containing attributes and options, must conatin a "type" attribute of type "file", "dir", "exe", "files", "remote".

Returns:
Type
module:ko/ui/filepath~Model