Nextcloud PHP API (master)

WidgetButton
in package

Button for a dashboard widget

Tags
since
25.0.0

Table of Contents

Constants

TYPE_MORE  = 'more'
TYPE_NEW  = 'new'
TYPE_SETUP  = 'setup'

Properties

$link  : string
$text  : string
$type  : string

Methods

__construct()  : mixed
getLink()  : string
Get the absolute url the buttons links to
getText()  : string
Get the translated text for the button
getType()  : string
Get the button type, either "new", "more" or "setup"

Constants

TYPE_MORE

public mixed TYPE_MORE = 'more'
Tags
since
25.0.0

TYPE_NEW

public mixed TYPE_NEW = 'new'
Tags
since
25.0.0

TYPE_SETUP

public mixed TYPE_SETUP = 'setup'
Tags
since
25.0.0

Properties

Methods

__construct()

public __construct(string $type, string $link, string $text) : mixed
Parameters
$type : string
$link : string
$text : string
Tags
since
25.0.0

Get the absolute url the buttons links to

public getLink() : string
Tags
since
25.0.0
Return values
string

getText()

Get the translated text for the button

public getText() : string
Tags
since
25.0.0
Return values
string

getType()

Get the button type, either "new", "more" or "setup"

public getType() : string
Tags
since
25.0.0
Return values
string

        
On this page

Search results