回到目录

对于Bootstrap的弹层,插件有很多,今天主要用的是它自带的功能,通过bootstrap提供的模式窗口来实现的,而大叔主要对使用方法进行了封装,开发人员可以自己动态传入弹层的HTML内容,可以控制按钮的显示与隐藏,用户通过MVC扩展方法对弹层进行生成,然后使用A标签进行调用.

具体使用很简单

@Html.GenerateDialog("测试",true,
@<div>
<form action="/home/index">hello world!</form>
</div>)
<a data-toggle='modal' data-target='#LindModal'>测试弹层</a>

上面代码分为两块,第一块MVC扩展方法,主要用于在页面上输出弹层的代码段,第二段是A标签的调用,主要用于绑定上面的弹层控件.

下面主要看一下弹层的扩展方法,它使用了Func<string, HelperResult>这个委托,用来接收前台的HTML代码段,这对于开发人员是个福音,你不用关心如何去拼接HTML代码了,而是直接把前台给我们的代码复制过来即可.

弹层方法

    #region Bootstrap弹层
/// <summary>
/// bootstrap风格的弹层
/// </summary>
/// <param name="htmlHelper"></param>
/// <param name="isBtn"></param>
/// <param name="result"></param>
/// <returns></returns>
public static MvcHtmlString GenerateDialog(this HtmlHelper htmlHelper, bool isBtn, Func<string, HelperResult> result)
{
return GenerateDialog(htmlHelper, "详细", isBtn, result);
}
/// <summary>
/// bootstrap风格的弹层
/// </summary>
/// <param name="htmlHelper"></param>
/// <param name="title"></param>
/// <param name="isBtn"></param>
/// <param name="result"></param>
/// <returns></returns>
public static MvcHtmlString GenerateDialog(this HtmlHelper htmlHelper, string title, bool isBtn, Func<string, HelperResult> result)
{
string templete = @"<div class='modal fade' id='LindModal' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog'>
<div class='modal-content'>
<div class='modal-header'>
<button type='button' class='close'
data-dismiss='modal' aria-hidden='true'>
&times;
</button>
<h4 class='modal-title' id='myModalLabel'>"+title+
@"</h4>
</div>
<div class='modal-body' id='dialogContent'>
" + result.Invoke(null) + "</div>";
if (isBtn)
{
templete +=
@"<div class='modal-footer'>
<button type='button' class='btn btn-warning'
data-dismiss='modal'>
关闭
</button>
<button type='button' class='btn btn-primary' id='subBtn'>
提交
</button>
</div>";
}
templete +=
@"</div>
</div>
</div>
<script>
$('#subBtn').click(function(){$('#dialogContent form').submit();});
</script>";
return MvcHtmlString.Create(templete); }
#endregion

而运行的效果是我们可以想到的

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzIAAAF2CAIAAAA6ATopAAAgAElEQVR4nO3d/XMb52Hgcf4b/FG/mtO0tpqEJiW/6MUSRUiCtCTFBV+wJMjdJUAC4CtEcqltLnUzc5nzZOo7/dC7zmlsJ3E6qjOOo+nLzXWq80x8aSQndiLVzp3tJK3UOm4k0T7ZriiL98NDLB/sLpYABSyWxPcz/MECFoslRXm/8zzPLlosAAAAREBLow8AAAAAlkWWAQAARARZBgAAEAlkGQAAQCSQZQAAAJFAlgEAAEQCWQYAABAJZBkAAEAkkGUAAACRQJYBAABEAllWe8sAAEReo8+W8EGWVa3R/44AAAhDo8+3zYgsq0ij/2kAANBIjT4PNwuyLEjw7+gSAAC7Dn3WQGSZv6o6bBEAgB2uqkpr9Fl61yLLfATXmO9v81kAAHasSkKNMgsBWVYiIMgCIqwAAMAOFxBqxFloyLJN5ZrMW2Py7/GCxzwAAJHnPX/5Vpo3ziiz+iHLNlQSZK4Uk3+55wAA2LG8uebqs+A4a/Q5fPcgyywrsMnkIJNrTPwez0pmAADYgeRzmVxpcp/JcUaZ1Q9ZZllSlnmbzBVkco2J3+bp6enp6em8Rw4AgEjynrPEuUyuNKfPXHFWrswafSbfJcgy/yZzBsnkIHNqzEkx51c8WzQFAMAO4Zy85GJzEs3pMznOnGEzyqwemj3LvNOXriaTR8hmZmampqZM0xwfH08BALBLjY+Pm6Y5NTUl4kye1vSWGVOZNUSWuZvMmbuUB8nECJlpml//+td/8pOfrK6urgMAsEutrq7+5Cc/efbZZw3DyOfzcpw5ZSbPZpJltdLUWVZVkxmG8cILL9y/f7/R/1gAAAjD/fv3v/e97+m67sxpUmb1Rpa5py+9TZbP5zOZzHPPPffJJ580+t8IAADh+e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vHSyHr85Ct9d7/ycmY1yTIAwE7VIufVxi3MntR2TpbZdrEDxB2x4opasPNOcBhJVZ7vM5KqmkyJU7vvFOHDZdnGNYlSTBTk+zuI22FkcrlCaVGJQS/vJKb323yYLCt91aZKVneV+yHU+idf2btPjLjuVCYUF/6TZQCAnWpnf/hS8R4NmwUj3xVMemTzpqaDyaTid6mgXSwbp1p872UqzxD6rZ0qOQxp0GjzVhfOCJN3PtF55KGzbCMQpTvvb34fru+6GEkBV2KWrE6T709b25985e8OAMCutLOzDAAAYNcgywAAACKBLAMAAIgEsgwAACASyDIAAIBIIMsAAAAigSwDAACIhIhmmWmay8vLjT4KAACA8EQ0y7LZ7MzMTKOPAgAAIDwRzTLLsgzDmJmZsSyr0ccCAAAQhohmmW3blmVls1nTNHUAAIAmEN0sAwAAaCpkGQAAQCSQZQAAAJFAlgEAAEQCWQYAABAJZBkAAEAkkGUAAACRQJYBAABEAlkGAAAQCWQZAABAJJBlAAAAkUCWAQAARAJZBgAAEAlkGQAAQCSQZQAAAJHw/wGgYLAAev/07QAAAABJRU5ErkJggg==" alt="" />

感谢咱们的阅读!

回到目录

Bootstrap~大叔封装的弹层的更多相关文章

  1. 原生JS封装 toast 弹层,自动关闭

    由于公司业务需求,要一个公共toast ,下面是自己封装的一个. css: .toast { text-align: center; min-height: 70px; width: 220px; c ...

  2. 基于layer简单的弹层封装

    /** * 产生长度为32的Guid字符串 */ function getGuid32() { var rt_str = String.fromCharCode(65 + Math.floor(Mat ...

  3. Bootstrap Modal多个弹出层顺序

    Bootstrap Modal多个弹出层顺序与div的顺序关联.后来者居上:即div靠后的modal层弹出的时候会在上层. 比如上图所示,模态框2弹出的时候会在模态框1上面.

  4. 原生Js封装的弹出框-弹出窗口-页面居中-多状态可选

    原生Js封装的弹出框-弹出窗口-页面居中-多状态可选   实现了一下功能: 1.title可自定义 可拖拽 2.width height可以自定义 3.背景遮罩和透明度可以自定义 4.可以自己编辑弹出 ...

  5. 富文本编辑器UEditor自定义工具栏(二、插入图片、音频、视频个性化功能按钮和弹层及自定义分页符)

    导读:本篇将简单探讨插入图片.音频.视频的功能按钮实现方式 传送门:富文本编辑器UEditor自定义工具栏(一.基础配置与字体.背景色.行间距.超链接实现) 一.效果图 1.UEditor自定义工具栏 ...

  6. 利用UiWatchers 监听解决安卓自动化各种自动化各种非期待弹窗,弹层,升级,广告,对话框,来电等问题

    app自动化时,各种不期待的弹层弹窗,升级广告等时有飞出,由于弹窗具有不定时,不定页面等很多不确定性.有的弹窗很不友好,不×掉,很难进行下一步操作,造成 测试用例失败.而判断是否有弹窗,弹层很麻烦.研 ...

  7. bootstrap 模态框中弹出层 input不能获得焦点且不可编辑

    bootstrap 模态框中弹出层 input不能获得焦点且不可编辑 问题描述:bs框架支持一层model层的情况下,在模态框中弹出了自定义的弹出层.发现自定义弹出层的输入框不能获得焦点且不可编辑. ...

  8. React15.6.0实现Modal弹层组件

    代码地址如下:http://www.demodashi.com/demo/12315.html 注:本文Demo环境使用的是我平时开发用的配置:这里是地址. 本文适合对象 了解React. 使用过we ...

  9. Appium UiWatchers 监听解决各种非期待弹窗,弹层,弹弹弹等问题

    app自动化时,各种不期待的弹层弹窗,升级广告等时有飞出,由于弹窗具有不定时,不定页面等很多不确定性.有的弹窗很不友好,不×掉,很难进行下一步操作,造成 测试用例失败.而判断是否有弹窗,弹层很麻烦.研 ...

随机推荐

  1. SortedDictionary

    对一个Dictionary<TKey, TValue>进行键排序可以直接用SortedDictionary SortedDictionary<TKey, TValue> 泛型类 ...

  2. BZOJ 1026: [SCOI2009]windy数

    题目 人生中的第一道数位dp,很有趣,虽然我很快推出了结构,但是过程却迟迟没有写出来,最后看别人的题解才恍然大悟 d[i][j]表示数位为i,最高位为j的方案数 DpInit非常简单,复杂度应该是O( ...

  3. c#对数据库访问完应关闭连接

    1.对数据库的连接SqlConnection con = new SqlConnection(constr);使用完成后,应该至少应该close或dispose关闭.否则会导致数据库例如(SQl200 ...

  4. js的执行机制

    遇到一个问题,因为自己本身就是菜鸟的原因,弄懂了还是很高兴的. console.log(a) function a() { return "this is function" } ...

  5. 《转》python线程池

    线程池的概念是什么? 在IBM文档库中这样的一段描写:“在面向对象编程中,创建和销毁对象是很费时间的,因为创建一个对象要获取内存资源或者其它更多资源.在Java中更是 如此,虚拟机将试图跟踪每一个对象 ...

  6. IntelliJ IDEA 发布最新版本13.0.1

    难闻转自:慧都控件网 值得高兴的消息,IntelliJ IDEA v13.0.1目前已经发布,相对于IntelliJ IDEA v13而言,此次更新内容,是略微改进和提高了性能,如代码输入变化,及完善 ...

  7. zmq中zmq_poll()函数介绍

    功能: 查看指定的多个socket上哪些socket发生了指定的事件, 事件有: ZMQ_POLLIN: 有消息到来 ZMQ_POLLOUT: 当前无阻塞可以发送消息 ZMQ_POLLERR: 只对标 ...

  8. 河南省第五届ACM程序设计大赛

    D:   遥 控 器 #include<cstdio> #include<cstring> #include<iostream> #include<algor ...

  9. PYTHON学习之路_PYTHON基础(10)

    学习内容: Python进程与线程 1.线程及线程类 2.线程守护 3.线程等待 4.线程锁 5.信号量 6.timer用法 7.队列 8.事件驱动 9.生产者消费者模型 10.进程及进程同步 11. ...

  10. Windows 8 一起学习

    收藏慢慢看 http://www.devdiv.com/Windows_Phone-windows_-thread-130302-1-1.html