Mongodb 易搜索流星
是否可以通过微调器更改easySearch搜索包的按钮loadmore?给你风格? 根据文档可以给出的风格,我已经试着让它工作,但到目前为止我还没有成功Mongodb 易搜索流星,mongodb,meteor,meteor-blaze,Mongodb,Meteor,Meteor Blaze,是否可以通过微调器更改easySearch搜索包的按钮loadmore?给你风格? 根据文档可以给出的风格,我已经试着让它工作,但到目前为止我还没有成功 {{> EasySearch.LoadMore index=myIndex content="Load more content"}} 参数 内容:按钮属性的内容:带有按钮的对象 属性(例如{class:“加载更多按钮”}) 计数:要加载的文档数 不幸的是,您将无法从“按钮”更改为“微调器”,因为EasySearch.LoadMore组
{{> EasySearch.LoadMore index=myIndex content="Load more content"}}
参数
内容:按钮属性的内容:带有按钮的对象
属性(例如{class:“加载更多按钮”})
计数:要加载的文档数
不幸的是,您将无法从“按钮”更改为“微调器”,因为
EasySearch.LoadMore
组件逐字呈现HTML按钮元素(请参见下面取自EasySearch的内容)
然后像这样在模板中使用助手
{{> EasySearch.LoadMore index=myIndex content="Load more content" attributes=loadMoreAttributes}}
这将为“加载更多”按钮提供一个css类load more button
。然后,您可以像下面的示例一样,在css中设置样式。显然,您将使用您想要的样式…这纯粹是例如
.load-more-button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
您好,谢谢您的回答,让我试着看看它是如何运行的,加载更多的按钮类,我从css调用,在那里我直接给出了样式,对吗@JordanWillisys,我更新了我的答案,给出了一个css样式的示例。非常感谢您的帮助,问候@jordanwillisI能够获得旋转器,再次感谢您的帮助
{{> EasySearch.LoadMore index=myIndex content="Load more content" attributes=loadMoreAttributes}}
.load-more-button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}