Programmer error or hard
来源:互联网 发布:ubuntu 启动过程 黑屏 编辑:程序博客网 时间:2024/06/06 00:57
- Text
- Number
- Switch
- Date & Time
- Date
- Time
- Time since
- Time tense
- Select
- Relation
- Partial
Text
text
- displays a text column, aligned left
full_name: label: Full Name type: text
Number
number
- displays a number column, aligned right
age: label: Age type: number
Switch
switch
- displays a on or off state for boolean columns.
enabled: label: Enabled type: switch
Date & Time
datetime
- displays the column value as a formatted date and time. The next example displays dates as Thu, Dec 25, 1975 2:15 PM.
created_at: label: Date type: datetime
You can also specify a custom date format, for example Thursday 25th of December 1975 02:15:16 PM:
created_at: label: Date type: datetime format: l jS \of F Y h:i:s A
Date
date
- displays the column value as date format M j, Y
created_at: label: Date type: date
Time
time
- displays the column value as time format g:i A
created_at: label: Date type: time
Time since
timesince
- displays a human readable time difference from the value to the current time. Eg: 10 minutes ago
created_at: label: Date type: timesince
Time tense
timetense
- displays 24-hour time and the day using the grammatical tense of the current date. Eg: Today at 12:49,Yesterday at 4:00 or 18 Sep 2015 at 14:33.
created_at: label: Date type: timetense
Select
select
- allows to create a column using a custom select statement. Any valid SQL SELECT statement works here.
full_name:
label: Full Name
select: concat(first_name, ' ', last_name)
Relation
relation
- allows to display related columns, you can provide a relationship option. The value of this option has to be the name of the Active Record relationship on your model. In the next example the name value will be translated to the name attribute found in the related model (eg: $model->name
).
group: label: Group relation: groups select: name
If the relationship definition uses the count argument, you can display the number of related records using thevalueFrom
and default
options.
users_count:
label: Users
relation: users_count
valueFrom: count
Partial
partial
- renders a partial, the path
value can refer to a partial view file otherwise the column name is used as the partial name. Inside the partial these variables are available: $value
is the default cell value, $record
is the model used for the cell and $column
is the configured class object Backend\Classes\ListColumn
.
content:
type: partial
path: ~/plugins/acme/blog/models/comments/_content_column.htm
- Programmer error or hard
- Programmer Or Coder
- how to deal with "no such file error or diretory" error for a new programmer in QT creator
- Coder, programmer or software developer
- WOJ1340-Easy or Hard
- 【linux】soft or hard lockup
- Become a Good Programmer in Six Really Hard Steps
- to be A Coder,OR A Programmer
- to be a Programmer or a Architect?
- good or great programmer 数学是道坎
- stop c000021a unknown hard error unknown hard error
- STOP:C0000135 unknown Hard Error unknown Hard Error
- Unknown hard error.stop:c000021a.
- Programmer
- Advice From An Old Programmer(Learn Python The Hard Way, 2nd Edition)
- XP SP3 HARD ERROR(硬件错误)
- 提示 STOP:c000021a unknown hard error
- c0000218 Unknown Hard Error的解决
- Java之类的继承
- 浅谈.NET应用程序SQL注入
- hdoj4004The Frog's Games
- OctoberCms Forms
- 运动的八卦图
- Programmer error or hard
- leetcode Design Hit Counter
- Question( category_id 关联 category_name)
- 【priority_queue<int,vector<int>,greater<int>>优先队列 按照由小到大顺序】
- The Relationship types
- sh 执行hive 查询 [文件名 要看全] -1
- 学习日常的记录
- bootstrap 实现简单轮播
- 【Postgresql源码分析之三】同步复制源码分析