office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1 lines • 1.48 kB
JavaScript
define([], function() { return "import * as React from 'react';\r\nimport { BaseAutoFill } from './BaseAutoFill';\r\n\r\nexport interface IBaseAutoFill {\r\n\r\n /**\r\n * The current index of the cursor in the input area. Returns -1 if the input element\r\n * is not ready.\r\n */\r\n cursorLocation: number;\r\n /**\r\n * A boolean for whether or not there is a value selected in the input area.\r\n */\r\n isValueSelected: boolean;\r\n /**\r\n * The current text value that the user has entered.\r\n */\r\n value: string;\r\n /**\r\n * The current index of where the selection starts. Returns -1 if the input element\r\n * is not ready.\r\n */\r\n selectionStart: number;\r\n /**\r\n * the current index of where the selection ends. Returns -1 if the input element\r\n * is not ready.\r\n */\r\n selectionEnd: number;\r\n /**\r\n * The current input element.\r\n */\r\n inputElement: HTMLInputElement;\r\n /**\r\n * Focus the input element.\r\n */\r\n focus(): void;\r\n /**\r\n * Clear all text in the input. Sets value to '';\r\n */\r\n clear(): void;\r\n}\r\n\r\nexport interface IBaseAutoFillProps extends React.HTMLProps<HTMLInputElement | BaseAutoFill> {\r\n /**\r\n * The suggested autofill value that will display.\r\n */\r\n suggestedDisplayValue?: string;\r\n /**\r\n * A callback for when the current input value changes.\r\n */\r\n onInputValueChange?: (newValue?: string) => void;\r\n\r\n}"; });