[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
bem
/
assets
/
sweetalert
/
src
/
modules
/
options
/
[
Home
]
File: content.ts
import { isPlainObject, } from '../utils'; export interface ContentOptions { element: string|Node, attributes?: object, }; const defaultInputOptions: ContentOptions = { element: 'input', attributes: { placeholder: "", }, }; export const getContentOpts = (contentParam: string|object): ContentOptions => { let opts = <any>{}; if (isPlainObject(contentParam)) { return Object.assign(opts, contentParam); } if (contentParam instanceof Element) { return { element: contentParam, }; } if (contentParam === 'input') { return defaultInputOptions; } return null; };