Version: 1.0 | 1.1 | 2.0 |

ResponsiveEmbed

in namespace DotVVM.Framework.Controls.Bootstrap

Renders Bootstrap Responsive Embed.

Properties

Name Type Description Notes Default Value
Type ResponsiveEmbedType Gets or sets the type of the embed.
attribute
inner element
static value
bindable
default
SixteenByNine

Events

Name Type Description

Usage & Scenarios

Allows blocks to be properly scaled by creating intrinsic ratio using Bootstrap Responsive Embed.

https://getbootstrap.com/docs/3.3/components/#responsive-embed

HTML Rendered by the Control

Sample 1: Basic ResponsiveEmbed

The ResponsiveEmbed control has the Type property for specifying the embed type. The options are:

  • SixteenByNine (16:9)
  • FourByThree (4:3)
<!-- 16:9 -->
<bs:ResponsiveEmbed Type="SixteenByNine">
  <iframe src="https://www.youtube.com/embed/fZsdEiTgv6o" frameborder="0" allowfullscreen=""></iframe>
</bs:ResponsiveEmbed>

<!-- 4:3 -->
<bs:ResponsiveEmbed Type="FourByThree">
  <iframe src="https://www.youtube.com/embed/fZsdEiTgv6o" frameborder="0" allowfullscreen=""></iframe>
</bs:ResponsiveEmbed>

Suggestions


Help & Contribute

The documentation is maintained on GitHub.
We'll be happy if you edit the page and create a pull request.

Send message