PHP code example of lednerb / nova-text-linked-field

1. Go to this page and download the library: Download lednerb/nova-text-linked-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lednerb / nova-text-linked-field example snippets


use Lednerb\TextLinked\TextLinked;

...

TextLinked::make('Title', 'title')
    ->link($this),
    
TextLinked::make('ID')
    ->link($this),

TextLinked::make('Title', 'title')
    ->linkResource($this->uriKey(), $this->id),

TextLinked::make('ID')
    ->url("https://novapackages.com"),

TextLinked::make('Title', 'title')
    ->link($this)
    ->openInNewTab(),

TextLinked::make('Title', 'title')
    ->link($this)
    ->openInNewTab('myTarget'), 

TextLinked::make('Title', 'title')
    ->link($this)
    ->trim(), // Default are 50 chars

TextLinked::make('Title', 'title')
    ->link($this)
    ->trim(60), 

TextLinked::make('Title', 'title')
    ->link($this)
    ->trim()
    ->hideTooltip(),