Expand all

mw.widgets.CopyTextLayout

Extends CopyTextLayout with MediaWiki notifications.

Extends

Constructor

new mw.widgets.CopyTextLayout([config]) #

Create an instance of mw.widgets.CopyTextLayout.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Description
successMessage string optional

Success message, defaults to the mw.Message 'mw-widgets-copytextlayout-copy-success'.

failMessage string optional

Failure message, defaults to the mw.Message 'mw-widgets-copytextlayout-copy-fail'.

Source:

Methods

onMwCopy(copied) #

Handle copy events.

Parameters:

Name Type Description
copied boolean
Source:
Handle copy events.