application/manage/block/DateBlock.php
public static function search($data = [])
    {
        if (isset($data['format']) && ! empty($data['format'])) {
            $data['attr'] = 'data-am-datepicker="{format: \'' . $data['format'] . '\'}"';
        } else {
            $data['attr'] = 'data-am-datepicker';
        }
        
        return TextBlock::search($data);
    }
public static function search($data = [])
    {
        if (isset($data['format']) && ! empty($data['format'])) {
            $data['attr'] = 'data-am-datepicker="{format: \'' . $data['format'] . '\'}"';
        } else {
            $data['attr'] = 'data-am-datepicker';
        }
        
        return TextBlock::search($data);
    }
public static function search ( $ data = [ ] ) { if ( isset ( $ data [ 'format' ] ) && ! empty ( $ data [ 'format' ] ) ) { $ data [ 'attr' ] = 'data-am-datepicker="{format: \'' . $ data [ 'format' ] . '\'}"' ; } else { $ data [ 'attr' ] = 'data-am-datepicker' ; } return TextBlock :: search ( $ data ) ; }
search

@param array $data
@return string
search