applyTo: The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for renderTo will be ignored and the target element's parent node will automatically be used as the component's container.
id、dom node、或者一个存在的适当的Element 指向 一个已经存在在当前Document,一个已经为这个组件指定了架构的Div。
当使用applyTo时,组件的要素也可以通过id或主元素中的css class name指定。如果可能的话正在创建的组件会试图通过markup创建它的子组件。
使用这个配置就不必调用render()了。如果applyTo指定了,任何传给render的值将会被忽略。并且目标元素的父元素将会自动成为组件的容器。
renderTo: The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using this config, a call to render() is not required.
指定一个元素、节点来作为容器将组件呈现其内。
contentEl 指定一个html node 作为 此元素的body content。
el 组件所对应的dom元素
applytomarkup: 不明白markup 是什么东西
Apply this component to existing markup that is valid. With this function, no call to render() is required.
分享到:
相关推荐
ExtJS中的renderTo和applyTo的差别 对applyTo和renderTo的理解和思考个人认为这两篇文章写的不够通俗。写一个简单的例子来看看最终生成了什么代码, 代码如下: <head> <title>RenderTo and ApplyTo</...
本文主要介绍怎么在el-tree组件中通过render函数来生成el-button。 这是element-ui中el-tree树: 这是需要实现的效果: tree.vue文件中,具体实现的代码如下: <el-tree :data=treeData :props=...
《Using a Render Pipeline to Render Primitives 使用渲染管道去渲染一个几何体(本例为渲染一个三角形)》一文的示例程序,可以对照文章学习。“可以”直接运行。
主要介绍了element-ui table组件如何使用render属性的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
jquery renderTo属性实现图片放大镜
Offline Render is an easy to use, realtime capture plugin for Unity. It allows you to capture the game view to a multi-channel OpenEXR or multiple PNG files, supporting not just the final output image...
使用fbo来实现render to texture演示
render()与render_to_response()均是django中用来显示模板页面的,但是在django1.3之后,render()便比render_to_response()更加招人待见!最明显的就是前者会自动使用RequestContext,而后者需要coding进去, 例如:...
Use OpenGL API to render cube with perspective projection.
一键将角色的Animator或Animation去掉,将SkinnedMeshRender更换为一般的Mesh Render,完成将动画效果的实现从CPU转移到GPU运算的目的,来利用GPU Instancing技术减少Draw Call。 • Convert assets quickly and ...
JsRender.zip(jsrender.js和jsrender.min.js合集)
render to html
使用POI绘制电子表格,从数据库中抽取数据,然后填充到表格中显示
WPF渲染Render范例C#代码 WPF渲染Render范例C#代码 WPF渲染Render范例C#代码
为您列举一些renderDoc方面的下载的内容,renderdoc教程、render doc安装、renderdoc plugin等资源。把最新最全的renderDoc推荐给您,让您轻松找到相关应用信息,并提供renderDoc下载等功能。本站致力于为用户提供更好...
允许你离线render to render,你可以把它们统一为(A)和正常邮件的生产流水线,用你最喜欢的合成软件。 特征 多通道openexr输出 setup目标帧率 出的9盒render(漫元素,镜面,发射/照明,回顾,深度,速度,normals...
效果 HTML的Table <Table width=100% height=500 size=small columns=columns7 stripe=true data=data></Table> JS代码 [removed] export default { data () { return { ... title: '序号',