{"action":"opened","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1207","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1207/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1207/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1207/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/1207","id":107242297,"number":1207,"title":"AutoForm.getFormType API request","user":{"login":"bySabi","id":6242574,"avatar_url":"https://avatars.githubusercontent.com/u/6242574?v=3","gravatar_id":"","url":"https://api.github.com/users/bySabi","html_url":"https://github.com/bySabi","followers_url":"https://api.github.com/users/bySabi/followers","following_url":"https://api.github.com/users/bySabi/following{/other_user}","gists_url":"https://api.github.com/users/bySabi/gists{/gist_id}","starred_url":"https://api.github.com/users/bySabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bySabi/subscriptions","organizations_url":"https://api.github.com/users/bySabi/orgs","repos_url":"https://api.github.com/users/bySabi/repos","events_url":"https://api.github.com/users/bySabi/events{/privacy}","received_events_url":"https://api.github.com/users/bySabi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-18T17:18:07Z","updated_at":"2015-09-18T17:18:07Z","closed_at":null,"body":"Hello @aldeed. I want to rewrite only one method, `adjustInputContext:`, from `formType` 'readonly'. I do this way:\r\n```\r\nAutoForm._formTypeDefinitions['readonly'].adjustInputContext = function (ctx) {\r\n    ctx.atts.readonly = \"\";\r\n    if (ctx.selectOptions) ctx.atts.disabled = \"\";\r\n    return ctx;\r\n}\r\n```\r\nMaybe is more appropriated if you expose function `Utility.getFormTypeDef`in API, maybe?\r\n\r\n```\r\nAutoForm.getFormType = Utility.getFormTypeDef\r\n```\r\n\r\nThen I can write above like\r\n```\r\nAutoForm.getFormType('readonly').adjustInputContext = function (ctx) {\r\n    ctx.atts.readonly = \"\";\r\n    if (ctx.selectOptions) ctx.atts.disabled = \"\";\r\n    return ctx;\r\n}\r\n```\r\n\r\nI can make a PR if you cannot ...\r\n"}}