FloatingLayer(containeropt, objectopt)

Class for managing floating layers

new FloatingLayer(containeropt, objectopt)

Parameters:
Name Type Attributes Default Description
container HTMLElement <optional>

base container element

object object <optional>

options for FloatingLayer

options.modaless boolean <optional>
false

set true for create floating layer without dimmed layer

options.usageStatistics boolean <optional>
true

Send the hostname to google analytics. If you do not want to send the hostname, this option set to false.

Examples

CommonJS entry

var FloatingLayer = require('tui-floating-layer');
var instance = new FloatingLayer(document.querySelector'#f1');

global namespace

var layer = new tui.FloatingLayer(document.querySelector('#fl'));

Methods

destroy()

Destructor

focus()

Set focus to layer

hide()

Hide layer

show()

Show layer