{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/4495","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/4495/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/4495/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/4495/events","html_url":"https://github.com/yiisoft/yii2/issues/4495","id":38893407,"number":4495,"title":"yii\\base\\Formatter // ability to shorten text or ntext or better maybe closure support?","user":{"login":"ItsReddi","id":3147888,"avatar_url":"https://avatars1.githubusercontent.com/u/3147888?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsReddi","html_url":"https://github.com/ItsReddi","followers_url":"https://api.github.com/users/ItsReddi/followers","following_url":"https://api.github.com/users/ItsReddi/following{/other_user}","gists_url":"https://api.github.com/users/ItsReddi/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsReddi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsReddi/subscriptions","organizations_url":"https://api.github.com/users/ItsReddi/orgs","repos_url":"https://api.github.com/users/ItsReddi/repos","events_url":"https://api.github.com/users/ItsReddi/events{/privacy}","received_events_url":"https://api.github.com/users/ItsReddi/received_events","type":"User","site_admin":false},"labels":[{"id":33330247,"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:ready%20for%20adoption","name":"status:ready for adoption","color":"02e10c","default":false},{"id":33332028,"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars1.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"assignees":[{"login":"samdark","id":47294,"avatar_url":"https://avatars1.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/23","html_url":"https://github.com/yiisoft/yii2/milestone/23","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/23/labels","id":2082378,"number":23,"title":"2.0.13","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars3.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":229,"closed_issues":46,"state":"open","created_at":"2016-10-20T12:05:24Z","updated_at":"2017-07-02T21:13:20Z","due_on":"2017-07-09T07:00:00Z","closed_at":null},"comments":5,"created_at":"2014-07-28T14:10:28Z","updated_at":"2017-07-03T08:52:07Z","closed_at":null,"body":"It would be nice to be able to short text within the Formatter or be able to set any format you want to via a closure.\n\nlike\n`\n'format'=>'ntext:200', //first 200 would be displayed\n`\n\nor adding closure support to Formatter.\n\nusecase...\nIm using kartik\\detail\\DetailView to have the ability to edit the fields directly in the detail view.\nhttp://demos.krajee.com/detail-view-demo\n\nNow if you have huge textfields there is no way to shorten the text without changing the value field to a shorter version.\n\nother usecases for closures\nany format you wish without a huge impact.\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/312587902","html_url":"https://github.com/yiisoft/yii2/issues/4495#issuecomment-312587902","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/4495","id":312587902,"user":{"login":"SamMousa","id":547021,"avatar_url":"https://avatars2.githubusercontent.com/u/547021?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMousa","html_url":"https://github.com/SamMousa","followers_url":"https://api.github.com/users/SamMousa/followers","following_url":"https://api.github.com/users/SamMousa/following{/other_user}","gists_url":"https://api.github.com/users/SamMousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMousa/subscriptions","organizations_url":"https://api.github.com/users/SamMousa/orgs","repos_url":"https://api.github.com/users/SamMousa/repos","events_url":"https://api.github.com/users/SamMousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamMousa/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T08:52:07Z","updated_at":"2017-07-03T08:52:07Z","body":"Anytime I pass a closure into the `value` key for a grid column it could as well be specified as a format. Which more clearly illustrates the fact that I'm just formatting and not creating a new value.\r\n\r\n"}}
{"actor":{"display_login":"SamMousa"}}