Class: UserInput

UserInput

User input to get public name with autocomplete list


new UserInput(api, options [, full])

Constructor

Parameters:
Name Type Argument Description
api MacarteAPI
options Object
Properties
Name Type Argument Description
target Element <optional>

element to place in

full boolean <optional>

get full information (id and picture)

Source:
api/UserInput.js
Fires:
  • event:select

Methods


autocompleteAuthor(value)

Autocomplete author list

Parameters:
Name Type Description
value string
Source:
api/UserInput.js

setUser(public_name)

Set the autor value

Parameters:
Name Type Description
public_name string
Source:
api/UserInput.js