Can you clarify what exactly you need? If you want to size a button, use the style attribute. Also, there is no reason to use Attr.concat in your snippet, button already takes a list of attributes (and so do all other HTML combinators.)

By on 2/25/2018 1:20 PM ()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
     <meta charset="utf-8" />
     <title></title>
     <style>
        .show {
             background-color: red;
             text-align:center;
        }
     </style>
 </head>
 <body>
     <div ws-template="show">
         <button style="height:40px;width:170px">${subject}</button>
         <button style="height:40px;width:170px">${topic}</button>
         <button style="height:40px;width:170px">${chapter}</button>
         <button style="height:40px;width:170px">${lesson}</button>
         <button style="height:40px;width:170px">${index}</button>
         <button style="height:40px;width:170px">${sum}</button>
         <button class="show" style="height:40px;width:2000px">X</button>
    </div>
</body>
</html>

//.... list_Database.View |> Doc.BindView (fun item ->

1
2
3
4
5
6
7
8
9
                item
                |> Seq.map (fun c ->
                    Doc.Concat [
                        showData
                            .show()
                            .Doc()
                    ]
                )
               |> Doc.Concat
By on 3/2/2018 11:59 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper